OnExit special processing when switching between forms
Posted on 2005-05-08
From the VCL reference help:
"Use the OnExit event handler to provide special processing when the control ceases to be active.
The OnExit event does not occur when switching between forms or between another application and your application."
What I need is this special processing when switching between forms.
The FormDeactivate event notices the switch, but what method evokes the OnExit special processing? I need it to save text in a RichEdit that disappears when switching forms. When I use the tab-key to jump (change focus?) from the RichEdit to a different control first and then switch forms, the text does not get lost.
I do not want to use a file and a button, only want to keep the text in the RichEdit as if the tab-key was hit just before the switch.