Board index » delphi » Form resource to dfm
Jack
Delphi Developer |
Form resource to dfm2003-12-30 12:43:58 AM delphi229 This might not be an OpenTools issue, and it might as well be impossible, but I have to make sure before just throwing away the idea. We are developing a project that will end up with different users using different form layouts, to accomplish this we are using the IDE to design forms, and we added a menu item thru OpenTools to save the active form to a resource file, and the resource file is loaded at runtime by the constructor. When we have to make changes to a form layout we have to be able to load the resource file back to dfm to be able to make the changes within the IDE and save it back to a resource. This could be accomplished using ReadComponentRes and then ObjectResourceToText, but in order to do this the FormClass being loaded has to be registered, and this prevents having a compiled package used by OpenTools to load any form. So I was wondering if it's possible to register classes at runtime by trying to intercept the raised error of "Class not Registered" and registering the class. As I am afraid this can not be accomplished, I'd appreciate any other idea that would accomplish my goal. Thanks for reading till here, and thanks in advance for any help. -Jack |