Sign in Join

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

Mailing lists / lazarus / 2015-09

Way to detect control resize start-stop

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Ondrej Pokorny
to Fabio Luis Girardi
Fabio Luis Girardi wrote 8 lines
The LCL has some mechanism to detect when a control is being re-sized and when resize is done? -- The best regards, Fabio Luis Girardi PascalSCADA Project<http://sourceforge.net/projects/pascalscada>

IMO it's not possible to achieve easily. There is only a mechanism that detects actual resize. The TControl.Resize method. Resizing can be done manually (mouse) or programatically. There is no standardized start-stop resizing mechanism.

Ondrej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150905/5be4efa9/attachment.html>

Reply by email

Mattias Gaertner
to Fabio Luis Girardi: The LCL has some mechanism to detect when a control is being re-sized and when resize is…
The LCL has some mechanism to detect when a control is being re-sized and when resize is done?

Please define what you mean with "resize is done". Every event can trigger new resizes.

Usually you can use OnResize or OnChangeBounds.

When the LCL has set all properties and OnResize events were fired the LCL sends the new bounds to the widgetset-interface in TWinControl.RealizeBounds, which can be overridden.

Mattias

Reply by email