[lazarus] wndproc

Shane Miller SMiller1 at stvgb.org
Mon Aug 16 15:39:06 EDT 1999


hmmm..I see that.  I don't see why it would be bad to call TControl(Data).wndproc(Message) instead of dispatching them right away.  I think that would be a good idea plus it would help with our Delphi compatability.  I would also think that this would help in making it easier to add other widget tool sets.

Anyone against this change? 
Shane


>>> Marc Weustink <weus at quicknet.nl> 08/16 2:14 PM >>>
At 12:43 16-08-99 -0500, "Shane Miller" <SMiller1 at stvgb.org> wrote:
>wndproc is not out of favor for windows controls, but for GTK it is.  
>Each control sets a callback for EACH signal so we dispatch them that way.  
>
>The msg's aren'tr being passed back yet because no one has coded them yet.  
>A few of them are already coded, like keydown.
>
>I'm not sure about converting everything to use wndproc.  How does wndproc
>handle it then?  Does it simply do a dispatch?  I haven't looked at Delphi's
>method of handling this, so I'm not awarer of it.

In delphi the WndProc is merely a big case Message.Msg of.... where finally
(in TControl) a call is made to Dispatch

Marc


_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus






More information about the Lazarus mailing list