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 » Zooming layout in Windows
Re: Zooming layout in Windows [message #36052 is a reply to message #36051] Sat, 21 April 2012 20:15 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 527
Registered: March 2007
Contributor
Following code does the same thing. Feel a bit slow in Ubuntu. There should be better way of achieving it.

	virtual void Layout()
	{
		Size sz=GetSize();
		int w1,h1,w2,h2;
		
		w1=sz.cx*5/7;
		h1=sz.cy*5/7;
		w2=sz.cx-w1;
		h2=sz.cy-h1;
		lt.SetRect(0,0,w1,h1);
		rt.SetRect(w1,0,w2,h1);
		lb.SetRect(0,h1,w1,h2);
		rb.SetRect(w1,h1,w2,h2);
	}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UDP connection
Next Topic: How to get pixels per millimeter for current screen?
Goto Forum:
  


Current Time: Tue May 14 06:44:12 CEST 2024

Total time taken to generate the page: 0.02569 seconds