Page 1 of 1

[26 Sep 2010] Open/closed Windows

Posted: Sat Jun 13, 2020 5:32 pm
by Juan Carlos
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 26 Sep 2010 10:48:08 +0000 (GMT)

Hello Andreas: have you some example to open close windows from one program? for example a typical program where you can open one window with a About where you can put one picture and also you can click and closed this window without close the main program, or open one window where you show a list for example the files and you can close this window as the File list of WinAmp/AmigaAmp, is is possible with Hollywood and How?

Thank you for you time, best regards from your friend Juan Carlos.

[26 Sep 2010] Re: Open/closed Windows

Posted: Sat Jun 13, 2020 5:32 pm
by Tuxedo
Note: This is an archived post that was originally sent to the Hollywood mailing list on 26 Sep 2010 16:24:46 +0200

Ciao Herran,
Hello Andreas: have you some example to open close windows from one program? for example a typical program where you can open one window with a About where you can put one picture and also you can click and closed this window without close the main program, or open one window where you show a list for example the files and you can close this window as the File list of WinAmp/AmigaAmp, is is possible with Hollywood and How? Thank you for you time, best regards from your friend Juan Carlos.
have you looked at "Multi Displays" Example ?

[26 Sep 2010] Re: Re: Open/closed Windows

Posted: Sat Jun 13, 2020 5:32 pm
by Juan Carlos
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 26 Sep 2010 17:29:03 +0000 (GMT)

Hello Simone:

Yes I saw the example with the "Multi Displays" but when you close one all are closed, besides the displays not has one button to autoclose, not the left corner button, one button in the center down as a requester window, and this example in the Hollywood I haven't saw, and I'm interested in these examples.

Saludos desde Palencia.

[26 Sep 2010] Re: Open/closed Windows

Posted: Sat Jun 13, 2020 5:32 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 26 Sep 2010 19:14:31 -0000

If you want a closing of the main window to end the program, but you want a closing of any other display only to close that specific window (without ending the program), you could use the following code:

Code: Select all

Function p_CheckClose(msg)
	If ToNumber(msg.ID)=1
		End()
	Else
		CloseDisplay(msg.ID)
	EndIf
EndFunction
InstallEventHandler({CloseWindow=p_CheckClose})

[27 Sep 2010] Re: Re: Open/closed Windows

Posted: Sat Jun 13, 2020 5:32 pm
by Juan Carlos
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 27 Sep 2010 09:49:28 +0000 (GMT)

Thank you rev for your help, now I'm more oriented way forward, thank you again.

Best regards from Juan Carlos.