Detecting a form "unload" OR detecting "Back"
Posted: Fri Dec 13, 2013 1:25 am
Hi all.
In a form I can perform an action / run a script when a form loads by using something like this;
#com_Owner.Set Property('/Form.OnLoad.Operation.Type') To('ShowMessage')
#com_Owner.Set Property('/Form.OnLoad.Operation.Message') To('Form has Loaded')
So... I wonder... is there a way to detect a form closing / unloading? Or is there a way for me to detect when the user presses "Back". So in a similar way to onload, I'd like to show a message or run a script when the user presses the "Back" button before the form actually disappears.
Cheers.
Marcus.
In a form I can perform an action / run a script when a form loads by using something like this;
#com_Owner.Set Property('/Form.OnLoad.Operation.Type') To('ShowMessage')
#com_Owner.Set Property('/Form.OnLoad.Operation.Message') To('Form has Loaded')
So... I wonder... is there a way to detect a form closing / unloading? Or is there a way for me to detect when the user presses "Back". So in a similar way to onload, I'd like to show a message or run a script when the user presses the "Back" button before the form actually disappears.
Cheers.
Marcus.