Page 1 of 1

Menus get disabled after the fullscreen mode on Windows

Posted: Wed Sep 01, 2021 3:31 pm
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 

Re: Menus get disabled after the fullscreen mode on Windows

Posted: Thu Sep 02, 2021 8:55 pm
by airsoftsoftwair
True, will be fixed. Thanks for reporting!

Re: Menus get disabled after the fullscreen mode on Windows

Posted: Sat Nov 06, 2021 7:14 pm
by airsoftsoftwair

Code: Select all

- Fix [Non-Amiga]: Menu states weren't restored correctly when switching between windowed and fullscreen modes