Hollywood complains about opened windows but you cant close

Report any Hollywood bugs here
Post Reply
User avatar
Tuxedo
Posts: 355
Joined: Sun Feb 14, 2010 12:41 pm

Hollywood complains about opened windows but you cant close

Post 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...
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Hollywood complains about opened windows but you cant cl

Post by airsoftsoftwair »

Please provide a small example script and I'll check :)
User avatar
Tuxedo
Posts: 355
Joined: Sun Feb 14, 2010 12:41 pm

Re: Hollywood complains about opened windows but you cant cl

Post 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?
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Hollywood complains about opened windows but you cant cl

Post 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.
User avatar
Tuxedo
Posts: 355
Joined: Sun Feb 14, 2010 12:41 pm

Re: Hollywood complains about opened windows but you cant cl

Post by Tuxedo »

I already do that ;)

Keep up good work!
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Hollywood complains about opened windows but you cant cl

Post 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...
User avatar
Tuxedo
Posts: 355
Joined: Sun Feb 14, 2010 12:41 pm

Re: Hollywood complains about opened windows but you cant cl

Post 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...
Simone"Tuxedo"Monsignori, Perugia, ITALY.
Post Reply