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

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

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

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

Сообщение MiniQ » 12.05.2014 15:28:49

Кто знаком с логикой привязок элементов в MSEGUI?
Растолкуйте, плз, как сделать, чтобы кнопка была привязана к правой границе окна и отслеживала изменение размера окна, перемещаясь за правой границей?
Есть ли здесь авторазмещение элементов, как в LCL?
MiniQ
новенький
 
Сообщения: 81
Зарегистрирован: 28.01.2013 16:31:55

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

Сообщение mse » 13.05.2014 09:19:36

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.
mse
новенький
 
Сообщения: 68
Зарегистрирован: 08.08.2013 15:40:31

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

Сообщение debi12345 » 07.06.2014 00:09:22

Is there an auto locate elements as in the LCL?

TLayouter, TSpacer,..
Аватара пользователя
debi12345
долгожитель
 
Сообщения: 5752
Зарегистрирован: 10.05.2006 23:41:15
Откуда: Ташкент (Узбекистан)


Вернуться в MSEide + MSEgui

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 5

Рейтинг@Mail.ru