Menus get disabled after the fullscreen mode on Windows

Report any Hollywood bugs here
Post Reply
User avatar
jPV
Posts: 422
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Menus get disabled after the fullscreen mode on Windows

Post by jPV »

It seems that if I change the display mode to fullscreen and then back to windowed, menus get disabled on Windows and I can't select anything anymore. This doesn't happen on Amiga compatible systems, so it's an operating system specific issue. I haven't tried on Mac or other systems if they're affected.

This is a new issue with 9.0, because executables compiled with Hollywood 8.0 don't have this issue.

Here's an example code:

Code: Select all

@MENU 1, {
    {"File", {
        {"Fullscreen", ID = "fullscreen"},
        {"Quit", ID = "quit"}}},
    {"?", {
        {"About...", ID = "about"}}}
    }

@DISPLAY {Menu = 1}

Function p_MenuFunc(msg)
	Switch msg.action
	Case "OnMenuSelect":
		Switch msg.item
        Case "fullscreen":
            Cls
            ChangeDisplayMode(#DISPMODE_FULLSCREEN, #NATIVE, #NATIVE)
            NPrint("Please wait...")
            Wait(100)
            ChangeDisplayMode(#DISPMODE_WINDOWED)
            Cls
            NPrint("Check menus now.")
        Case "quit":
            End
        EndSwitch
    EndSwitch
EndFunction

InstallEventHandler({OnMenuSelect = p_MenuFunc})
NPrint("Select File/Fullscreen menu item.")

Repeat
    WaitEvent
Forever 

User avatar
airsoftsoftwair
Posts: 4764
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Menus get disabled after the fullscreen mode on Windows

Post by airsoftsoftwair »

True, will be fixed. Thanks for reporting!

Post Reply