Forum > LCL

[bug] anchor editor breaks visibility of LabeledEdit

<< < (2/2)

Muso:

--- Quote from: jamie on August 01, 2022, 10:34:13 pm ---Align the Panel instead and set the TLabelEdit for autosize etc.

--- End quote ---
Thanks.

However, I thought that the behaviour of TLabeledEditcould be improved somehow.

Bart:
It can, in the way I described.
And then people will complain that it is not Delphi compatible anmore.

Bart

wp:
I don't understand jamie's description. Here's what I would do:

* Don't use TLabeledEdit.
* Put the label and the edit into a panel.
* Set the panel's ChildSizing.ControlsPerLine to 1, .EnlargeHorizontal to crsHomegenousChildResize and .Layout to cclLeftToRightThenTopToBottom.
* Set the Panel's AutoSize to true and its Constraints.MinWidth to the desired width of the edit box.This can be applied to any combination of labels and controls (e.g. a "TLabeledCombobox")

HeavyUser:

--- Quote from: wp on August 05, 2022, 12:14:23 am ---I don't understand jamie's description. Here's what I would do:

* Don't use TLabeledEdit.
* Put the label and the edit into a panel.
* Set the panel's ChildSizing.ControlsPerLine to 1, .EnlargeHorizontal to crsHomegenousChildResize and .Layout to cclLeftToRightThenTopToBottom.
* Set the Panel's AutoSize to true and its Constraints.MinWidth to the desired width of the edit box.This can be applied to any combination of labels and controls (e.g. a "TLabeledCombobox")

--- End quote ---
or make it a frame so you can drop as many as needed.

Navigation

[0] Message Index

[*] Previous page

Go to full version