On Thursday 12 May 2016 13:47:21 Krzysztof wrote:
> 2016-05-12 7:18 GMT+02:00 Martin Schreiber <mse00...@gmail.com>:
> > I also use Ctrl+Arrows and Ctrl+Shift+Arrows and align widgets visually
> > by the design grid which is common for the whole form. That works well
> > for me. At runtime for complicated layouts I use OnLayout and the
> > TWidget.Place*() and Align*() functions and the SyncMaxAutoSize() and
> > SyncPaint*() procedures. I'll think about a "magnet" function while
> > component dragging.
>
> Forgot that there is also OnLayout event. Is there any example how to use
> it?
>
Adjust the widget positions and sizes in OnLayout. An example is in 
TFileDialogFo.OnLayout, the method still has the old name FoOnChildScaled().
lib/common/dialogs/msefiledialog.pas:1539.

Martin

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to