Page 1 of 1

Hollywood complains about opened windows but you cant close

Posted: Tue Mar 17, 2015 5:26 pm
by Tuxedo
Hi!
I noticed thatn it you have some displays opened on an Holylwood screen and you want to switch to a windowed mode(for example) Hollywood complains about opened windows that cant permit him to close the screen but...
Since it was Hollywood dysplays that "locks" the screen why I cant close them? The Erorr requester completely locks Hollywood so Calls to ahndlers for closing windows dont function...

Foe sure I can simply check if Hollywood windows was opened and than switch screen but why simply dont ask for closing Hollywood "child" windows or simply close the windows from the "old" screen and autoatically open them in the new behaviour? Not so important but I think have to be reported someway...or maybe was simply a standard Hollywood behaviour...



EDIT: I tryed an old LoView build and that problem wont appear so in old Hollywood the behaviour was different...

Re: Hollywood complains about opened windows but you cant cl

Posted: Tue Mar 17, 2015 11:00 pm
by airsoftsoftwair
Please provide a small example script and I'll check :)

Re: Hollywood complains about opened windows but you cant cl

Posted: Wed Mar 18, 2015 12:22 am
by Tuxedo
Here..

Code: Select all

@DISPLAY 1, {Title = "Test", Width = 1280, Height= 1024, Color = $EEEEEE, Mode = "FullScreen", Monitor = 1}

CreateDisplay(2, {Title = "Info file", Width = 350, Height = 265, Color = $F0F0F0, NoHide = TRUE, NoModeSwitch = TRUE, Sizeable = FALSE })
CreateDisplay(3, {Title = "Choose a file to display...", Width = 350, Height = 250, NoHide = TRUE, Sizeable = FALSE, Color = $F0F0F0, NoModeSwitch = TRUE})

Wait(100)
;OpenDisplay(1)
OpenDisplay(2)
OpenDisplay(3)

SelectDisplay(1)

WaitLeftMouse()

ChangeDisplayMode(#DISPMODE_WINDOWED, 800, 600, {Monitor = 1})
That's the problem...

PS Why if I use the preprocessor command @DISPLAY to inizialize display 2 and 3 the OpenDisplay fails and have to use CreateDisplay() instead?

Re: Hollywood complains about opened windows but you cant cl

Posted: Fri Mar 20, 2015 9:32 pm
by airsoftsoftwair
Thanks, I can confirm both issues here. They will be fixed. As a workaround, you can just manually close the displays before switching to windowed mode.

Re: Hollywood complains about opened windows but you cant cl

Posted: Sat Mar 21, 2015 12:44 am
by Tuxedo
I already do that ;)

Keep up good work!

Re: Hollywood complains about opened windows but you cant cl

Posted: Sat Mar 21, 2015 10:47 pm
by airsoftsoftwair
PS Why if I use the preprocessor command @DISPLAY to inizialize display 2 and 3 the OpenDisplay fails and have to use CreateDisplay() instead?
Oops, this one is not a bug of course. When you declare a @DISPLAY it will automatically be opened unless you set "Hidden = True". Thus, calling OpenDisplay() on an already open display will fail...

Re: Hollywood complains about opened windows but you cant cl

Posted: Sun Mar 22, 2015 12:30 am
by Tuxedo
Ok, you are right I cut'n'paste code to compose the example.script so maybe forgot something since Im looking for the close screen problem...