Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-08

variation in implementation of evenments

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

P Jean dit Bailleul

In Delphi most event are implemented in 2 phases : a method recieve the message (like WmClick, WmChange...), this method call a second method (like Click, Change...) which is dynamic and respond to the event (by calling an OnClick, OnChange...). This way it is possible to override those methods to implement responds to these events.
I think it would be usefull to implement the LCL the same way.

To do so, someone (i can't connect to CVS) need to change the TControl.DoClick to call a dynamic method TControl.Click which test FOnClick and call it if needed. I also need the TCustomComboBox.DoChange to be modified the same way.

Thanks
P Jean dit Bailleul ()

Reply by email