|
|
Home » U++ Library support » TopWindow&PopUp, TrayIcon » Fullscreen in linux
Fullscreen in linux [message #39599] |
Wed, 03 April 2013 14:52 |
Zbych
Messages: 326 Registered: July 2009
|
Senior Member |
|
|
Hi,
I am trying to open full screen window from my application. Unfortunately only main window is able to do this, all other windows aren't.
Do you have any idea how to convince window manager (metacity? ubuntu 10.04 and 12.04), to let all windows go fullscreen?
Test code:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
static int i = 0;
struct MyAppWindow : TopWindow {
Label l;
virtual void LeftDown(Point pos, dword flags) {
MyAppWindow().Run();
}
MyAppWindow() {
Title("Fullscreen");
FullScreen();
l.SetLabel(Format("\1[= Window %d&Click to open next window]", ++i));
l.SizePos();
Add(l);
}
};
GUI_APP_MAIN
{
MyAppWindow().Run();
}
|
|
|
|
|
|
|
|
|
Re: Fullscreen in linux [message #41812 is a reply to message #39599] |
Fri, 24 January 2014 20:04 |
|
Alboni
Messages: 214 Registered: January 2012 Location: Deventer, Netherlands
|
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 May 15 04:47:36 CEST 2024
Total time taken to generate the page: 0.01543 seconds
|
|
|