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 » Draw, Display, Images, Bitmaps, Icons » Layout size
Layout size [message #45063] Wed, 26 August 2015 10:10 Go to next message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hi,

When I create New Windows application the default layout size is 200x100 pixels.

But when checked actual size it is 240x130 pixels. Running exe window size is same with additional borders and title.

My display resolution is 1366x768. Using win 10 and latest SVN sources 8845. IDE compiled with this source.

Layout window in IDE also draws this rectangle as 240x130 pixels.

LAYOUT(testsizeLayout, 200, 100)
END_LAYOUT


What can be problem?


Warm Regards

Deepak
Re: Layout size [message #45064 is a reply to message #45063] Wed, 26 August 2015 15:48 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
deep wrote on Wed, 26 August 2015 10:10
Hi,

When I create New Windows application the default layout size is 200x100 pixels.

But when checked actual size it is 240x130 pixels. Running exe window size is same with additional borders and title.

My display resolution is 1366x768. Using win 10 and latest SVN sources 8845. IDE compiled with this source.

Layout window in IDE also draws this rectangle as 240x130 pixels.

LAYOUT(testsizeLayout, 200, 100)
END_LAYOUT


What can be problem?


It is zoomed to reflect actual font size.

Mirek
Re: Layout size [message #45069 is a reply to message #45063] Thu, 27 August 2015 10:20 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hi Mirek,

How to use non zoomed size?


Warm Regards

Deepak
Re: Layout size [message #45073 is a reply to message #45069] Thu, 27 August 2015 20:03 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello deep,

Just use NoLayoutZoom() method in your class constructor. Example:
class MyLayoutClass : public WithMyLayoutClassLayout<TopWindow> {
public:
    MyLayoutClass() {
        NoLayoutZoom();
    }
};


NoLayoutZoom() is defined in Ctrl class.

Sincerely,
Klugier


U++ - one framework to rule them all.
Re: Layout size [message #45074 is a reply to message #45073] Thu, 27 August 2015 20:23 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Klugier wrote on Thu, 27 August 2015 20:03
Hello deep,

Just use NoLayoutZoom() method in your class constructor. Example:
class MyLayoutClass : public WithMyLayoutClassLayout<TopWindow> {
public:
    MyLayoutClass() {
        NoLayoutZoom();
    }
};


NoLayoutZoom() is defined in Ctrl class.

Sincerely,
Klugier


Caution: NoLayoutZoom is not bound to single instance. It is static method and it stops zooming globally (for all layouts).

Mirek
Previous Topic: Help Propblem work buffer
Next Topic: Native DPI
Goto Forum:
  


Current Time: Thu Mar 28 12:48:30 CET 2024

Total time taken to generate the page: 0.01531 seconds