We might execute form.gotFocus() / form.lostFocus() just before form.Activate() / form.deActivate().
Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)
From: | Thierry Nivelet (FoxInCloud) |
To: | Keith |
Would it be possible to support a forms LostFocus event?
I cannot find a mention of it in the FIC roadmap.
I use this event throughout my applications to detect whether
form data has changed and prevent users from moving to on
to another form without saving the changes first.
IF THISFORM.DataChangeCheck AND THISFORM.HasDataChanged(.T.)
THISFORM.WINDOWSTATE=0 && Maximise in case minimised.
ACTIVATE WINDOW (THIS.NAME)
THISFORM.AUTOCENTER=.T.
RETURN .F.
ENDIF
Stuffed without it. :(
Thanks.
Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)