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

Вопросы программирования и использования MSEide + MSEgui.

Модератор: Модераторы

Ответить
MiniQ
новенький
Сообщения: 81
Зарегистрирован: 28.01.2013 16:31:55

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

Сообщение MiniQ »

Кто знаком с логикой привязок элементов в MSEGUI?
Растолкуйте, плз, как сделать, чтобы кнопка была привязана к правой границе окна и отслеживала изменение размера окна, перемещаясь за правой границей?
Есть ли здесь авторазмещение элементов, как в LCL?
mse
новенький
Сообщения: 68
Зарегистрирован: 08.08.2013 15:40:31

Сообщение 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.
Аватара пользователя
debi12345
долгожитель
Сообщения: 5761
Зарегистрирован: 10.05.2006 23:41:15
Откуда: Ташкент (Узбекистан)

Сообщение debi12345 »

Is there an auto locate elements as in the LCL?

TLayouter, TSpacer,..
Ответить