Menus get disabled after the fullscreen mode on Windows
Posted: Wed Sep 01, 2021 3:31 pm
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:
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