Home » Developer & Programmer » Forms » Closing child window (Forms 6i)
Closing child window [message #359477] Sun, 16 November 2008 16:39 Go to next message
sindikalac
Messages: 52
Registered: November 2008
Location: Europe
Member
Hi,

I created a form, with a button. When I click a button, new window opens (popup window). I would like to close this window, but not to close whole form. I found WHEN-WINDOW-CLOSED trigger with (set_window_property) on form level, but it doesn't work. Because it just shortly blinks (as the window is closed) and bring that window up again. I tried to use also a exit_form command, but it doesn't work, because it closes whole form, and I just want to close popup window.
Re: Closing child window [message #359495 is a reply to message #359477] Sun, 16 November 2008 21:42 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Just do a 'go_item' to an item on the other canvas / window and the current one will be replaced by the previous one.

David
Re: Closing child window [message #359505 is a reply to message #359495] Sun, 16 November 2008 23:57 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
What is this "popup window"? How do you display it? Is it a new form, or - possibly - a stacked canvas? Did you check use of the HIDE_VIEW built-in?
Re: Closing child window [message #359513 is a reply to message #359477] Mon, 17 November 2008 00:41 Go to previous messageGo to next message
sindikalac
Messages: 52
Registered: November 2008
Location: Europe
Member
It is like this:

I have one canvas with the button on it. From that canvas (canvas1) I jump to another canvas (canvas2, which I call popup window) using a button. When that new canvas opens it has in its titlebar (right corner) three (I don't know how to call it) minimize, maximaze and exit buttons just like in every Microsoft progran. I want to close canvas2 using exit - X button on title bar and to return to canvas1.
Re: Closing child window [message #359684 is a reply to message #359513] Tue, 18 November 2008 00:32 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Look at the example listed in the help facility for 'when-window-closed'.

David
Previous Topic: how to release lock
Next Topic: FRM 92101 error
Goto Forum:
  


Current Time: Mon Feb 03 14:49:36 CST 2025