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 » 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: 14261
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: Mon Jun 09 11:50:42 CEST 2025

Total time taken to generate the page: 0.04346 seconds