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 » U++ Widgets - General questions or Mixed problems » Size of TopWindow is different then the size I set for it
Re: Size of TopWindow is different then the size I set for it [message #48370 is a reply to message #48369] Mon, 26 June 2017 14:37 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13979
Registered: November 2005
Ultimate Member
rafiwui wrote on Mon, 26 June 2017 13:32
Yes it makes sense or I am doing sth else wrong, because my layout is not visible as a whole even if the size I give the rectangle and the size I give the layout are the same. I am not setting the layout as parent of my class. Maybe that leads to my problem:
class MyWindow : public TopWindow
{
    // Menu bar is added here...
}

GUI_APP_MAIN
{
    MyWindow app;
    app.SetRect(0, 0, 300, 150);

    WithMyLayout<TopWindow> layout;
    SetLayout_MyLayout(app, layout, true, true);

    app.Run();
}


Well, font zooming is there for a reason - your application should work with different GUI font!

I guess you should just do it right: Leave zooming active and actually zoom your own coordinates. E.g.

app.SetRect(0, 0, Zx(300), Zy(150));

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to blur a Ctrl
Next Topic: preferred way to get event "sender" control?
Goto Forum:
  


Current Time: Mon May 13 07:06:46 CEST 2024

Total time taken to generate the page: 0.02431 seconds