Code: Select all
Structure FFmap
key.b[256]
EndStructure
Define Keys.FFmap
MessageRequester("Keys","M - Window Maximize" + #CRLF$ + "N - Window Normal" + #CRLF$ + "Esc - End Program")
If OpenWindow(0,0,0,200,200, "You Cannot see me?",#PB_Window_Invisible)
SetActiveWindow(0)
;HideWindow(0,#True)
Repeat
iEvent = WaitWindowEvent(1)
GetKeyboardState_(@Keys)
If Keys\key[#VK_M] & %10000000 : SetWindowState(0,#PB_Window_Maximize) : EndIf
If Keys\key[#VK_N] & %10000000 : SetWindowState(0,#PB_Window_Normal) : EndIf
If Keys\key[#VK_ESCAPE] & %10000000 : iEvent = #PB_Event_CloseWindow : EndIf
Until iEvent = #PB_Event_CloseWindow
EndIf
EndExamine Desktops can be used to confirm there is more than one display, but how do you know which one your app is on? My app needs to know the size of the display it is on, hence the hidden Window - the hidden Window goes wherever the main app Window goes and the idea was to maximize the hidden Window temporarily when the display size is required. Well, I thought it was a good idea......

