Page 1 of 1

ModeSwitch and Command+Return

Posted: Wed Aug 07, 2013 6:52 pm
by Juan Carlos
I could see that with the new version of Hollywood for Windows is not need InstallEventHandler for this automatically when you press the keys Command+Return change to a special full mode, littlest than true desktop size, I work in this code:

Code: Select all

Local AnchoPantalla = GetAttribute(#DISPLAY, 0, #ATTRHOSTWIDTH)
Local AltoPantalla = GetAttribute(#DISPLAY, 0, #ATTRHOSTHEIGHT)

Function p_EventFunc(msg)
	Switch msg.action
	   Case "ModeSwitch":
		ModeSwitch(1, #DISPMODE_FULLSCREEN)
		SetVideoSize(1, AltoPantalla, AnchoPantalla)
	
	EndSwitch
EndFunction

InstallEventHandler({ModeSwitch=p_EventFunc})
To change the mode to real desktop size but the result is the special full mode from Hollywood, and this happen with all applications, but also with under MOS and OS4, why? I try to change to see movies to real full mode screen no this special screen of 800x600.

Re: ModeSwitch and Command+Return

Posted: Wed Aug 07, 2013 8:56 pm
by Bugala
Although not really a tip, thanks from the tip anyway,

Hadnt came to my mind that you can make swtiching to fullscreen mode that simple. I might use your code sometime on one of my own projects.

Re: ModeSwitch and Command+Return

Posted: Thu Aug 08, 2013 9:54 am
by Juan Carlos
Bugala wrote:Although not really a tip, thanks from the tip anyway,

Hadnt came to my mind that you can make swtiching to fullscreen mode that simple. I might use your code sometime on one of my own projects.
The problem is that the code does nothing because under Windows is activated for default and the full mode, well is a 800x600 full mode by default, you can test in your system with Alt+Return without added this code.