Home » Community » Newbie corner » Upp GUI size in Win and Ubuntu
Re: Upp GUI size in Win and Ubuntu [message #39905 is a reply to message #39901] |
Fri, 10 May 2013 10:38   |
Sender Ghost
Messages: 301 Registered: November 2008
|
Senior Member |
|
|
nlneilson wrote on Fri, 10 May 2013 04:48 | Is there a way to lock in all the dlg.lay dimensions?
|
I didn't find this function for layouts (and there is no such option for Layout Designer), except static Ctrl::NoLayoutZoom(). But possible to use not zoomed version of placement manually, e.g.:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
EditString text, zoomedText;
text.NullText("Normal"); zoomedText.NullText("Zoomed");
TopWindow window;
window.SetRect(Size(320, 240));
window.Add(text.LeftPos(4, 100).TopPos(4, 20)); // Without Z suffix
window.Add(zoomedText.LeftPosZ(4, 100).TopPosZ(28, 20));
window.Run();
}
[Updated on: Fri, 10 May 2013 11:31] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Apr 30 17:32:35 CEST 2025
Total time taken to generate the page: 0.03311 seconds
|