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 » Community » Newbie corner » Auto-Resize
Auto-Resize [message #48612] Wed, 09 August 2017 08:40 Go to next message
rafiwui is currently offline  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 #48613 is a reply to message #48612] Wed, 09 August 2017 09:09 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Dear rafiwui

I cannot understand you well. Could you explain it in more detail?


Best regards
Iñaki
Re: Auto-Resize [message #48614 is a reply to message #48613] Wed, 09 August 2017 09:16 Go to previous messageGo to next message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
Let's say I have an application like this:
index.php?t=getfile&id=5364&private=0

(Rest of the explanation in next post because of one-file limitation)


Greetings
Daniel
Re: Auto-Resize [message #48615 is a reply to message #48614] Wed, 09 August 2017 09:18 Go to previous messageGo to next message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
And if I set:
Sizeable(true);

I get this:
index.php?t=getfile&id=5365&private=0

So my question is, if there is some kind of widget that automatically resizes or if all the widgets are able to resize automatically if I tell them?


Greetings
Daniel
Re: Auto-Resize [message #48616 is a reply to message #48615] Wed, 09 August 2017 10:50 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1091
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


[Updated on: Wed, 09 August 2017 10:55]

Report message to a moderator

Re: Auto-Resize [message #48617 is a reply to message #48616] Wed, 09 August 2017 11:19 Go to previous messageGo to next message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
Thanks! Exactly what I was looking for.

Greetings
Daniel
Re: Auto-Resize [message #48627 is a reply to message #48617] Thu, 10 August 2017 08:14 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Smile

Best regards
Iñaki
Re: Auto-Resize [message #48628 is a reply to message #48627] Thu, 10 August 2017 10:33 Go to previous messageGo to next message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
Well I encountered a problem:
index.php?t=getfile&id=5369&private=0
This happens if I use the HSizePosZ/VSizePosZ methods on all four buttons. But it should look like the picture in the next post but bigger/smaller.
How to achieve that? Because that isn't possible with the size methods (I tried different combinations in the layout designer).


Greetings
Daniel
Re: Auto-Resize [message #48629 is a reply to message #48628] Thu, 10 August 2017 10:34 Go to previous messageGo to next message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
This is how it should look:
index.php?t=getfile&id=5370&private=0


Greetings
Daniel
Re: Auto-Resize [message #48642 is a reply to message #48629] Fri, 11 August 2017 09:03 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Dear rafiwui

Could you post a couple of pictures with two different window sizes to see how the buttons had to resize with the window?


Best regards
Iñaki
Re: Auto-Resize [message #48643 is a reply to message #48642] Fri, 11 August 2017 09:16 Go to previous message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
I will post it in the Feature request forum because of the file limitation.

Greetings
Daniel

[Updated on: Fri, 11 August 2017 09:51]

Report message to a moderator

Previous Topic: Touchscreen and buttons
Next Topic: How to walk the heap?
Goto Forum:
  


Current Time: Fri Mar 29 16:09:22 CET 2024

Total time taken to generate the page: 0.02228 seconds