[Re: [lazarus] wndproc]
Michal Bukovjan
mbukovjan at netscape.net
Tue Aug 17 05:31:16 EDT 1999
"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.
>
> Shane
I am not sure about the single WndProc either. This approach certainly slows
things down, and I find the GTK (multiple signals) way more versatile.
I think we will have to decide if we want
1) Lazarus to be Delphi compatible to the point that it is bound to Windows.
2) Leave out some Delphi solutions which had to be created/were suited for
Windows, and supply our own, more versatile ones (be their
Delphi-incompatible). Again, remember that Delphi is VERY designed for
Windows, and if we want Lazarus for as much platforms as possible, we
definitely will need to abandon some Delphi approaches.
The shiny example of the 2) is Handle, which is rarely found anywhere beyond
Windows, and since Windows get COMized, not even there in the future (my
guess).
Michal Bukovjan
More information about the Lazarus
mailing list