![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
![]() |
Sun, Dec 17 2017 8:13 AM | Permanent Link |
Andrew Oborn | Hi,
I've got a form with two TBasicPanel (header and detail), the header contains a TLabel which has it's caption set at run time, so I'm trying to get the panels to re-size based on label caption - so header takes what it needs based on the label, and detail uses the rest. The header panel will later contain a few more controls eventually, but for simple testing I've set up a test with one tLabel for now to illustrate/test the issue. The properties I've set are: Form: Layout - Stretch = lsBottomRight HeaderPanel: Layout - Consumption = lcBottom Layout - Postion = lpTopLeft Layout - Stretch = lsRight (to make it full width) Margins - 10 all round Layout Order: 0 DetailPanel: Layout - Postion = lpTopLeft Layout - Stretch = lsBottomRight Margins - bottom, left and right all set to 10 Layout Order: 1 Label1 Settings: Margins - 5 all round Layout - Postion = lpTopLeft Layout - Stretch = lsBottomRight Format - Wrap = true I've made sure I've left the Label.Autosize - width set false as found a few previous posts indicating this was an issue when using Layout. Have tried Autosize - height =true on the label and header panel - makes no difference. I've also looked at setting the Layout - Overflow property on the label and header panel, this also doesn't seem to have made any difference. What am I missing please / how can I make the label & header panel expand/shrink based on label text and form width ? Thanks Attachments: example.JPG |
Sun, Dec 17 2017 12:14 PM | Permanent Link |
Uli Becker | Andrew,
> What am I missing please / how can I make the label & header panel expand/shrink based on label text and form width ? Two settings are not correct: 1. The label's Layout.Stretch must be lsRight, not lsBottomRight (with lsBottomRight Autosize.Height does not work). 2. The HeaderPanel's Autosize.Height has to be set. Please note that the label's Layout.Consumption has also to be set, otherwise the Panel's Autosize.Height would not work. Attached a sample project. Uli Attachments: Temp1.zip |
Sun, Dec 17 2017 12:43 PM | Permanent Link |
Andrew Oborn | Aha perfect, many thanks Uli.
|
This web page was last updated on Friday, December 1, 2023 at 06:01 PM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |