[lazarus] Creating Components...
Jeff Wormsley
daworm at cdc.net
Thu Aug 12 08:56:52 EDT 1999
On 8/12/99, at 2:54 AM, Pascal Dutilleul wrote:
>Just my $.02 :
>
>Could you treat LM_CREATE as a constructor for the button : create the
>object, and setting the right properties (reading from the DFM (or
>replacement)-file, ), but don't create the button 'physically' (no
>WINAPI calls in LM_CREATE).
>
>In LM_ADDCHILD there you could create the button-window, using the
>WINAPI.
The problem is that I would rather not duplicate the entire LCL in win32, which is what I would need to do in order to do something like that. In other words, I would have the LCL TButton, and then a TWin32Button in the interface. This seems to be the way GTK operates, with all of its widgets already made and (at least in Win32) stored in the shared libraries (GTKDLL's), and GtkInt maps an LCL control to a Gtk widget. However, if it is possible to avoid, and it seems to be, then I will avoid it at all costs. My big hurdle right now is that for every 1 LM_xxxx message, there seem to be 5 or 6 WM_xxxx messages that it takes to do that task. For instance, LM_CREATE causes a window to be created, which fires about 5 windows messages, starting with WM_GETMINMAXINFO (from memory), and ending with WM_SHOWWINDOW.
Jeff.
More information about the Lazarus
mailing list