Home » Developer & Programmer » Forms » How to close a window with close icon
How to close a window with close icon [message #354858] Tue, 21 October 2008 12:15 Go to next message
secchan20
Messages: 31
Registered: April 2005
Member
Sounds very silly, but please give me advice. How could I allow a user to close a window by clicking a close icon (X) at the right upper corner on the window? Minimize and maximize icons work, but close icon doesn't work.

Thank you in advance.
Re: How to close a window with close icon [message #354859 is a reply to message #354858] Tue, 21 October 2008 12:23 Go to previous messageGo to next message
saadatahmad
Messages: 452
Registered: March 2005
Location: Germany/Paderborn
Senior Member

hi,
Use When-Window-Closed trigger at form level and write
exit_form;

If you want to do some other task on clicking the close box, write the code for that purpose.

regards,
Saadat Ahmad
Re: How to close a window with close icon [message #354862 is a reply to message #354859] Tue, 21 October 2008 12:38 Go to previous messageGo to next message
secchan20
Messages: 31
Registered: April 2005
Member
Thanks for such a quick reply! However, exit_form in when-window-closed doesn't work in this case because the window I want to close by X icon is secondary and the main window also closes. I want to leave the main one open. Is there any advice?
Re: How to close a window with close icon [message #354863 is a reply to message #354859] Tue, 21 October 2008 12:49 Go to previous message
secchan20
Messages: 31
Registered: April 2005
Member
After modifying when-window-closed with hide_window(secondary window) and go_block(main block), now X icon works. Thanks for your advice, Saadat!
Previous Topic: how to insert my menus in my forms
Next Topic: calculating the values
Goto Forum:
  


Current Time: Sun Dec 04 19:00:25 CST 2016

Total time taken to generate the page: 0.04323 seconds