Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Layout management
Re: Layout management [message #59641 is a reply to message #59640] |
Sun, 19 February 2023 18:53  |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
zura wrote on Sun, 19 February 2023 18:16Thanks for the clarification!
Another thing - is there some "auto fit/resize by content" mechanism? I.e. if the button has a label which is longer than button's width, how I can make the button resize to fit the label? Should I do it manually with absolute coords/sizes? (So first I have to calculate how many pixels the label takes on the button).
You do it manually. However, if you do that in designer, it rarely needs any adjustments (and if, then only for i18n) - layout coordinates are zoomed according to host GUI font, which rarely fails.
That said, widgets have standard virtual methods like GetMinSize that in theory could be use to do "sizers" style approach. In the past, it was discussed, but then ppl usually come to U++ because they like the programming with layouts.
|
|
|
Goto Forum:
Current Time: Sun Aug 31 08:10:59 CEST 2025
Total time taken to generate the page: 0.04909 seconds
|