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: 265
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: 14158
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: 265
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: 1084
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: 14158
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: Sat Dec 07 03:26:17 CET 2024

Total time taken to generate the page: 0.01553 seconds