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 #48868 is a reply to message #48865] |
Mon, 16 October 2017 10:56 |
|
mirek
Messages: 13984 Registered: November 2005
|
Ultimate Member |
|
|
I see...
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <GuiTest/test.lay>
#include <CtrlCore/lay.h>
struct MyApp : WithTestLayout<TopWindow> {
MenuBar bar;
MyApp() {
AddFrame(bar);
bar.Set([=](Bar& bar) {
bar.Sub("File", [=](Bar& bar) {
bar.Add("Exit", [=] {
Break();
});
});
});
CtrlLayout(*this);
}
};
GUI_APP_MAIN {
MyApp().Execute();
}
Note that it is important to call CtrlLayout AFTER adding menu as CtrlLayuot actually adds frame dimensions to the whole requested window size.
[Updated on: Mon, 16 October 2017 10:56] Report message to a moderator
|
|
|
|
|
Size of TopWindow is different then the size I set for it
By: rafiwui on Fri, 23 June 2017 15:58
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: mirek on Sat, 24 June 2017 15:23
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: rafiwui on Mon, 26 June 2017 09:49
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: rafiwui on Mon, 26 June 2017 12:51
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: mirek on Mon, 26 June 2017 13:08
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: rafiwui on Mon, 26 June 2017 13:32
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: mirek on Mon, 26 June 2017 14:37
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: rafiwui on Mon, 26 June 2017 14:51
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: mirek on Mon, 26 June 2017 15:15
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: rafiwui on Tue, 10 October 2017 08:54
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: mirek on Sat, 14 October 2017 11:05
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: rafiwui on Mon, 16 October 2017 09:29
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: mirek on Mon, 16 October 2017 10:56
|
|
|
Re: Size of TopWindow is different then the size I set for it
By: rafiwui on Mon, 16 October 2017 12:08
|
Goto Forum:
Current Time: Thu Jun 06 16:18:11 CEST 2024
Total time taken to generate the page: 0.01289 seconds
|