Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
zura wrote on Sun, 19 February 2023 18:16
Thanks 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.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multiwindows
Next Topic: LabelBox align problem
Goto Forum:
  


Current Time: Sun Aug 31 08:10:59 CEST 2025

Total time taken to generate the page: 0.04909 seconds