Board index » delphi » Re: TCustomForm and TDataModule using in multithreaded environments
Frenk
![]() Delphi Developer |
Re: TCustomForm and TDataModule using in multithreaded environments2006-12-07 04:16:26 AM delphi34 Aleksander, ok I don't understand. Designtime is intended fror use inside IDE. Runtime are libs and classes for compiled (redistributable) binaries. Designtime are design time objects, e.g. DesignWindow (canvas for designime), wizzards, component and proeprty editors. These objects are useless for runtime, and terefore are collected together and marked as designtime packages. Runtime packages are collection of classes (procedures, functions, variables, etc.) that are used by a running application. Corelaton between designtime and runtime is established via IDE (OTA) registration procedures. There is a no-brainer that TWinControl descendants have "TVisualDesignerWindow" designer and TComponent descendants have "TNonVisualDesignerWindow" designer. Main difference between these designers is that one can hold visual representation of owned objects and the other one can hold only 24x24px icon representation of owned objects (behind the scenes, there is a difference of component containter object inside designer, but this is a different story anyway, and works perfectly inside D5-D7). Correct me if I am wrong. What you are telling me is that I can use a TVisualDesignerWindow designer for a TComponent descendants. I tried to do that, but finally gave up with no success. Then I checked 2 different frameworks of a similar type, DevEx WebFramework and Intraweb. The first one did the same as I did. Descend from TComponent and implement own esigner from scratch. The second one used TVisualDesignerWindow (as you stated "bad design") and made not so optimal but still a working solution (I checked this using TIWForm and class function "ClassParent"). There is also a third option to use a "precompiler" which would change source code with "ifdefs" (like compactframework RAD for 2006). Can you explain more detailed what you are thinking about separating designtime/runtime? Did you mean something that is allready mentioned before? Regards, Frenk |