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 » Layouts, sizers etc
Layouts, sizers etc [message #9011] Thu, 12 April 2007 12:36 Go to next message
jmansion is currently offline  jmansion
Messages: 15
Registered: April 2006
Location: London
Promising Member
Does the UI library have support for layouts, sizers etc?

Is there any likelihood of it getting such support?

James
Re: Layouts, sizers etc [message #9014 is a reply to message #9011] Thu, 12 April 2007 14:40 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
jmansion wrote on Thu, 12 April 2007 06:36

Does the UI library have support for layouts, sizers etc?

Is there any likelihood of it getting such support?

James



U++ is based on visual, coordinate based, design, but "coordinates" are flexible enough to allow resizible layouts.

Possibility of "logical" layouts has been discussed here too, I guess consensus is that it would be nice to have, but at the moment it does not seem to solve any real problem.

Means, there definitively is likelihood. Basic elements for such arrangments are already there (Ctrl supports "GetMinSize", which is more or less the basic thing you need AFAIK).

Mirek
Re: Layouts, sizers etc [message #9019 is a reply to message #9014] Thu, 12 April 2007 16:23 Go to previous messageGo to next message
jmansion is currently offline  jmansion
Messages: 15
Registered: April 2006
Location: London
Promising Member
>does not seem to solve any real problem

Really? Doesn't it automatically handle all sorts of 'user resized the window' issues? Certainly seems to when coding with SWT, wxWidgets etc.

Indeed, the lack of resize and relayout logic does in my view make the flattering code comparisons somewhat invalid.

Aren't we effectively living in the old world of dialog units and code that cases around after a WM_SIZE to rearrange everything?
Re: Layouts, sizers etc [message #9020 is a reply to message #9019] Thu, 12 April 2007 16:54 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
jmansion wrote on Thu, 12 April 2007 10:23

>does not seem to solve any real problem

Really? Doesn't it automatically handle all sorts of 'user resized the window' issues? Certainly seems to when coding with SWT, wxWidgets etc.



Well, the problem is that in 98% cases, "user resized the window" is already solved by current layout system. The remaining 1.5% can be categorized as "but it looks ugly anyway". Sure, that useful 0.5% would still be nice to have.

Quote:


Aren't we effectively living in the old world of dialog units and code that cases around after a WM_SIZE to rearrange everything?



Of course not. Designing resizable dialogs in U++ is trivial. Usually it involves pressing Ctrl+A (to select all widgets in layout) a pushing "Auto springs" button. Sometimes you have to adjust some boundary cases afterwards manually (3-4 more clicks).

Mirek
Previous Topic: Gui Tutorial 16 oops...
Next Topic: how is the WindowProc of DHCtrl working?
Goto Forum:
  


Current Time: Wed May 29 10:14:33 CEST 2024

Total time taken to generate the page: 0.01538 seconds