U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TopWindow&PopUp, TrayIcon » Toggling between FullScreen and not
Re: Toggling between FullScreen and not [message #14153 is a reply to message #14149] Fri, 15 February 2008 16:20 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Tom1 wrote on Fri, 15 February 2008 08:41

Hi,

I do not seem to be able to toggle the TopWindow between FullScreen and normal size. FullScreen works OK from the constructor of the TopWindow derived class, but not after that. Help, anybody?

// Tom




I am afraid you will have to close it and open again after changing the flag.

E.g.:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

struct App : TopWindow {
	bool fullscreen;

	virtual void LeftDown(Point, dword) {
		Close();
		DUMP(IsOpen());
		FullScreen(fullscreen = !fullscreen);
		SetRect(100, 100, 400, 400);
		OpenMain();
	}
	
	App() { fullscreen = false; }
};

GUI_APP_MAIN
{
	App app;
	app.OpenMain();
	Ctrl::EventLoop();
}


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
Read Message
Previous Topic: Linux TrayIcon menu improvement
Next Topic: How to get and set window placement information?
Goto Forum:
  


Current Time: Sun Oct 04 18:24:56 GMT+2 2026

Total time taken to generate the page: 0.04418 seconds