ModeSwitch and Command+Return

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

ModeSwitch and Command+Return

Post 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.
Bugala
Posts: 1390
Joined: Sun Feb 14, 2010 7:11 pm

Re: ModeSwitch and Command+Return

Post 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.
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

Re: ModeSwitch and Command+Return

Post 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.
Post Reply