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 » Splitter » Splitter: how to set some contraints on its children?
Splitter: how to set some contraints on its children? [message #697] Wed, 25 January 2006 21:53 Go to next message
ucanca is currently offline  ucanca
Messages: 9
Registered: January 2006
Location: London, UK
Promising Member
Hi,

Is there any way to tell a splitter that I want to set some contraints on its children? (I mean, besides coding it myself by trapping the rezise event)
E.g., its first child should take as a minimum 10% of the whole horizontal space and 50% as a maximum (when I resize it manually), but occupy 30% at creation time (preferred size)?

I know this sounds a bit convoluted but it can be a life saver.

Thanks!

[Updated on: Fri, 28 April 2006 10:28] by Moderator

Report message to a moderator

Re: Question re: Splitters [message #698 is a reply to message #697] Wed, 25 January 2006 22:15 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13311
Registered: November 2005
Ultimate Member
The only option in this area is:

void Splitter::SetMin(int i, int w);

(sets minimim splitter size in pixels).
Re: Question re: Splitters [message #700 is a reply to message #698] Wed, 25 January 2006 22:23 Go to previous message
ucanca is currently offline  ucanca
Messages: 9
Registered: January 2006
Location: London, UK
Promising Member
OK, thanks.

I had seen this method but hoped there was more somehow (that's usually the case with U++ Smile

I'll see if I can manage to implement this functionality (%-based constraints) myself, then Wink
Next Topic: how programatically change widths/heights of splitted controls? [SOLVED]
Goto Forum:
  


Current Time: Wed May 12 08:07:39 CEST 2021

Total time taken to generate the page: 0.01062 seconds