[lazarus] Creating Components...

Pascal Dutilleul pduti at yahoo.com
Thu Aug 12 05:45:06 EDT 1999


> I would say to just create the button in the
> LM_ADDCHILD message and do nothing
> in the LM_CREATE message. Either that or send the
> parent information with the
> LM_CREATE message and then do nothing in the
> LM_ADDCHILD message. 


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.

Pascal

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com






More information about the Lazarus mailing list