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 #48369 is a reply to message #48330] Mon, 26 June 2017 13:32 Go to previous messageGo to previous message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
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();
}


Greetings
Daniel

[Updated on: Mon, 26 June 2017 14:03]

Report message to a moderator

 
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: Sun May 12 21:23:27 CEST 2024

Total time taken to generate the page: 0.01773 seconds