Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 11 Jan 2010 13:30:46 -0000
That is strange, it works here so please provide an example script but make it as small as possible! Delete all unnecessary code! I just want a few lines of code
That's my SwitchScreen code:
Code: Select all
Function p_SwitchFullScreen() ; called by button...
WbL = GetAttribute(#DISPLAY, 1, #ATTRHOSTWIDTH) ;\to get host screen dimensions
WbH = GetAttribute(#DISPLAY, 1, #ATTRHOSTHEIGHT) ;/
Switch TuttoSchermo
Case 0:
WinLOLD = GetAttribute(#DISPLAY, 1, #ATTRWIDTH) ;\
WinHOLD = GetAttribute(#DISPLAY, 1, #ATTRHEIGHT) ;\ here save my old window dimensions...
WinXOLD = GetAttribute(#DISPLAY, 1, #ATTRXPOS) ;/
WinYOLD = GetAttribute(#DISPLAY, 1, #ATTRYPOS) ;/
SetDisplayAttributes({ Width = WbL, Height = WbH, Borderless = True})
ChangeDisplayMode(#DISPMODE_FULLSCREEN, WbL, WbH) ; vado in FullScreen...
TuttoSchermo = 1
Case 1:
SetDisplayAttributes({ Width = WinLOLD, Height = WinHOLD, Sizeable = TRUE, ScaleMode = #SCALEMODE_NONE})
ChangeDisplayMode(#DISPMODE_WINDOWED) ; vado in finestra sul wb...
TuttoSchermo = 0
EndSwitch
Using only the routine above with the provided button all works as expected... But using the hotkey dont work since the window border create a display bigger that wb screen so hollywood cant make the display window(that's what I think).
The problem exists, as described above, only when using hotkey from fullscreen to window mode... If use hotkey to go fullscreen the only problem was that the screen created was only of the dimensions of the current display window but that's easly adjustable checcking the switched screen(with InstallEventHandler({ModeSwitch.....}), and maybe adjust that... But since The event "ModeSwitch" dont block the hotkey function I cant "control" that with it and to switch froim FullScreen to window I get the error...
Hope that now was all clear, sorruy again for my bed english...
PS I cant reopen my old window at the same position that have before Siwtch to FullScreen... I tryed with pass the X,Y value to SetDisplayAttributes but dont worked...maybe I've done some mistake...
Thanks!
Simone
Simone"Tuxedo"Monsignori, Perugia, ITALY.