Страница 1 из 1

Привязки границ контролов

СообщениеДобавлено: 12.05.2014 15:28:49
MiniQ
Кто знаком с логикой привязок элементов в MSEGUI?
Растолкуйте, плз, как сделать, чтобы кнопка была привязана к правой границе окна и отслеживала изменение размера окна, перемещаясь за правой границей?
Есть ли здесь авторазмещение элементов, как в LCL?

Re: Привязки границ контролов

СообщениеДобавлено: 13.05.2014 09:19:36
mse
MiniQ писал(а):Who are familiar with the logic of binding elements in MSEGUI?
Explain plz how to make the button to be attached to the right border of the window and tracked resizing, moving in the right border?

Is there no Russian speaking MSEide+MSEgui user who can answer that question?
MSEgui widgets have have no alignment property, please use twidget.anchors instead. Delphi alignment never worked satisfyingly for me.
[al_left,al_top] -> (default) anchored at top left corner, size and position independent of parent widget bottom-right corner.
[al_right,al_top] -> widget follows the right edge of the parent widget (possibly what you want).
[al_right,al_bottom] -> widget follows the bottom-right corner of the parent widget.
[al_left,al_right,al_top] -> widget extends with the right edge of the parent widget.
[al_left,al_right,al_top,al_bottom] widget extends with the bottom-right corner of the parent widget.
[al_top] -> widget fills the client width of the parent widget.
[al_bottom] -> widget fills the client width of the parent widget and moves with the bottom edge of the parent widget.
[al_top,al_bottom] -> widget fills the client width of the parent widget and extends with the bottom edge of the parent widget.
[] -> widget fills the client area of the parent widget.
...
Always first set and then remove anchors.

Is there an auto locate elements as in the LCL?

I don't understand.

Re: Привязки границ контролов

СообщениеДобавлено: 07.06.2014 00:09:22
debi12345
Is there an auto locate elements as in the LCL?

TLayouter, TSpacer,..