Home » U++ Library support » TopWindow&PopUp, TrayIcon » Fullscreen in linux
Re: Fullscreen in linux [message #41812 is a reply to message #39599] |
Fri, 24 January 2014 20:04  |
 |
Alboni
Messages: 216 Registered: January 2012 Location: Kajaani, Finland
|
Experienced Member |
|
|
I was fighting with this also.
I got this working in debian (with gnome classic) and Windows
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <MaximizeTest/MaximizeTest.lay>
#include <CtrlCore/lay.h>
class MaximizeTest : public WithMaximizeTestLayout<TopWindow> {
public:
typedef MaximizeTest CLASSNAME;
MaximizeTest()
{
CtrlLayoutCancel(*this, "Window title");
Sizeable(); FullScreen();
button<<=THISBACK(DoPopup);
}
void DoPopup()
{
WithPopupLayout<TopWindow> dlg;
CtrlLayoutCancel(dlg, "popup");
#ifdef PLATFORM_WIN32
FrameLess().Maximize();
#ifndef _DEBUG
dlg.TopMost();
#endif
#else
Hide(); dlg.OpenMain(); dlg.Sizeable(); dlg.FullScreen();
#endif
dlg.ExecuteCancel();
#ifndef PLATFORM_WIN32
Show();
#endif
}
};
GUI_APP_MAIN
{
MaximizeTest().Run();
}
[Updated on: Fri, 24 January 2014 20:04] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Jun 18 05:20:59 CEST 2025
Total time taken to generate the page: 0.05655 seconds
|