Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Aligning TLabel and TEdit/TButtonCombobox
Sat, Oct 24 2015 5:16 PMPermanent Link

Christian Kaufmann

What is the best approach to align a group of input controls on a screen?

- on the left side of every control there is a TLabel
- length of TLabels can vary, even at runtime because different translations are loaded

1) I would like all input controls "left aligned"
2) I would like to have the TLabel and the input control vertical centered

cu Christian
Sun, Oct 25 2015 9:20 AMPermanent Link

Uli Becker

Christian,

> What is the best approach to align a group of input controls on a screen?

I found a test project (attached) where I did just that, maybe it will
fit your needs.
You can edit the MultilineEdit on the right and press the button to see
the matching result.

Uli




Attachments: Test Input Layout.zip
Sun, Oct 25 2015 10:04 AMPermanent Link

Christian Kaufmann

Uli Becker wrote:

> I found a test project (attached) where I did just that, maybe it will fit your needs.
> You can edit the MultilineEdit on the right and press the button to see the matching result.

Ok, but this doesn't work with a fix size dialog window.

What I think of would be more some kind of TGridPanel.

cu Christian
Sun, Oct 25 2015 10:59 AMPermanent Link

Uli Becker

> Ok, but this doesn't work with a fix size dialog window.

If the size is fixed: what exactly is the problem?

Uli
Sun, Oct 25 2015 2:05 PMPermanent Link

Christian Kaufmann

Uli Becker wrote:

> If the size is fixed: what exactly is the problem?

The size is not fix because I create my forms with english text, but can have text in other
languages loaded dynamically.

But I'll probably create something on my own.

cu Christian
Image