|
|
Home » Community » Newbie corner » Auto-Resize
Auto-Resize [message #48612] |
Wed, 09 August 2017 08:40 |
rafiwui
Messages: 105 Registered: June 2017 Location: Stuttgart, Germany
|
Experienced Member |
|
|
I was wondering if there is something similiar to the wxWidgets widget sizer? Or do I have to catch the resizing action and resize the widgets manually?
Greetings
Daniel
|
|
|
|
|
|
Re: Auto-Resize [message #48616 is a reply to message #48615] |
Wed, 09 August 2017 10:50 |
Oblivion
Messages: 1112 Registered: August 2007
|
Senior Contributor |
|
|
Hello,
Yes there are automatic widget resizer methods for Ctrl variants in U++
If you are using layout, you can simply use vertical and/or horizontal spring setters. (rightmost buttons on the layout editor's tool bar.)
If not, you can use Ctrl::SizePos() variants (e.h. HSizePos(), VSizePos() etc.), and their "zoomable" counterparts (HSizePosZ(), VSizePosZ(), etc.)
See: https://www.ultimatepp.org/srcdoc$CtrlLib$Tutorial$en-us.htm l#14 ("More about logical coordinates")
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Wed, 09 August 2017 10:55] Report message to a moderator
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Sep 21 05:39:40 CEST 2024
Total time taken to generate the page: 0.03423 seconds
|
|
|