[Lazarus] New autosize is better than me

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sat Apr 24 15:57:32 CEST 2010


Mattias Gaertner schrieb:

> OnResize is a very important event. See the mails from zeljko. It now
> works somewhat like OnAfterResize, which should be quite Delphi
> compatible.
> 
> The name OnAfterResize would be misleading. It was always triggered
> after the control was resized. But for Delphi compatibility it should
> be triggered after all other have reacted to this resize. That's not
> even true for Delphi, but that is how a lot of code uses it.

While OnResize should be kept for Delphi compatibility, I still would 
suggest to add further events, according to the layout recalculation 
passes. Then OnResize could be deprecated, or get the new usage 
documented, while true Lazarus applications and components should use 
the new events.

DoDi





More information about the Lazarus mailing list