Page 1 of 1

3 Textboxes next to each other, make 2nd one grow when 3rd is hidden

Posted: Wed Nov 05, 2025 12:48 pm
by ophidia
I have a Databand containing 3 Texts. If a certain variable is set to false, the 3rd Textbox is disabled (via condition). In that case, the 2nd box should increase in size so that it fills the space where text3 usually is.

Image

Is that in any way possible? I tried setting AutoWidth to true, but that makes it grow even when text3 isnt hidden.

So, can I somehow achieve this?

Re: 3 Textboxes next to each other, make 2nd one grow when 3rd is hidden

Posted: Wed Nov 05, 2025 9:22 pm
by Lech Kulikowski
Hello,

You can set the Width of the Text component from code.

Thank you.

Re: 3 Textboxes next to each other, make 2nd one grow when 3rd is hidden

Posted: Mon Nov 10, 2025 6:58 am
by nancyfett
Lech Kulikowski wrote: Wed Nov 05, 2025 9:22 pm Hello,

You can set the Width of the Text component from code.

Thank you.
That worked perfectly, thanks for the quick response and the code example!

Tunnel Rush Game

Re: 3 Textboxes next to each other, make 2nd one grow when 3rd is hidden

Posted: Mon Nov 10, 2025 8:12 am
by Lech Kulikowski
Hello,

You are welcome.