Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Form Lost Focus

$
0
0
Re: Form Lost Focus
FoxInCloud
Re: Form Lost Focus
Feb. 22, 2013
09:13 am
3Q00JRWJZShow this entire thread in new window
Gratar Image based on email address
From:Tuvia Vinitsky
To:Keith
Only a no-no from VFP code, we resize all the time via javscript. That also allows us to "unfold" forms and do similar things.


Hi and thank you Tuvia.

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.


FiC supports form.Activate() / form.deActivate()
We might execute form.gotFocus() / form.lostFocus() just before form.Activate() / form.deActivate().


Hi FIC Developers.

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.





Viewing all articles
Browse latest Browse all 10393

Trending Articles