↧
Yep, I have learnt from the Adaption Assistant that moving
and resizing forms programmatically is a bit of a no, no.
Keith
However thisform.maximize will not work, unless that has changed in a recent version. Form resizing we do via javascript. FiC provides an excellent interface to js via form methods.
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.