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 » How and where to set position when using layouts?
icon5.gif  How and where to set position when using layouts? [message #45240] Thu, 15 October 2015 22:08 Go to previous message
frozen is currently offline  frozen
Messages: 13
Registered: January 2013
Promising Member
Hi!

I am a bit confused.

I have used layouts for everything.
There is the main window with a splitter inserted via layout.
And then there are two other layouts, containing some widgets.

Inside the constructor of the app I have:
MainSplitter.Horz ( tabbasic.SizePos(), ErgebnisGrid.SizePos() );
MainSplitter.SetPos ( MainSplitter.ClientToPos ( tabbasic.GetLayoutSize() ), 0 );


I hoped this would place the splitter control in a way that the small tabbasic is completely visible without giving it more place than needed and leaving the rest for ErgebnisGrid.

But this doesn't work.

I finally came up with some sort of solution by setting the position like this:
void MyApp::Layout()
{
	MainSplitter.SetPos ( MainSplitter.ClientToPos ( tabbasic.GetLayoutSize() ), 0 );
}


This works fine. But if you minimize the app and then maximize it again, it's all painted black. Trying TopWindow::Layout(); or anything else doesn't help..

Any ideas? Is there something rather obvious that I am missing?

Thank you very much!

Kind regards,

frozen
 
Read Message icon5.gif
Read Message
Previous Topic: MayBe extend Styles of Splitter?
Next Topic: Bug: adding HScrollBar uses sbar as item
Goto Forum:
  


Current Time: Thu Mar 28 18:01:41 CET 2024

Total time taken to generate the page: 0.01098 seconds