[REBOL] Catching the Close Event
From: philb:upnaway at: 12-Jan-2003 10:21
Hi All,
I want to catch the close event to save the position of the window when it is closed.
I picked up the texchnique of inserting a global event to catch the close window event.
view layout [
button "New Window" [
view/new layout [
vtext "a sub-window" red
]
]
do
[
insert-event-func [
either event/type = 'close [
print "Closing"
event
]
[event]
]
]
]
But if I have more than 1 window open then how do I determine which window is being closed??
Cheers Phil