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 |
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);
}
|
|
|
|
|
Zooming layout in Windows
By: jerson on Tue, 17 April 2012 19:49
|
|
|
Re: Zooming layout in Windows
By: jerson on Sat, 21 April 2012 03:11
|
|
|
Re: Zooming layout in Windows
By: Lance on Sat, 21 April 2012 15:56
|
|
|
Re: Zooming layout in Windows
By: jerson on Sat, 21 April 2012 16:15
|
|
|
Re: Zooming layout in Windows
By: Lance on Sat, 21 April 2012 19:56
|
|
|
Re: Zooming layout in Windows
By: Lance on Sat, 21 April 2012 20:15
|
|
|
Re: Zooming layout in Windows
By: jerson on Sun, 22 April 2012 02:52
|
|
|
Re: Zooming layout in Windows
By: Lance on Sun, 22 April 2012 03:17
|
|
|
Re: Zooming layout in Windows
By: Lance on Sun, 22 April 2012 05:12
|
|
|
Re: Zooming layout in Windows
By: jerson on Sun, 22 April 2012 05:49
|
|
|
Re: Zooming layout in Windows
By: Lance on Sun, 22 April 2012 14:29
|
Goto Forum:
Current Time: Tue May 14 06:44:12 CEST 2024
Total time taken to generate the page: 0.02569 seconds
|