Ed Leafe wrote:
> On Mar 18, 2009, at 11:56 AM, johnf wrote:
> 
>> Is there a way to emulate the valid method in VFP in python,  
>> wxPython, or
>> Dabo????
>>
>> I have a control without a bizobj and wish to validate the data  
>> before moving
>> to a different control because lostFocus fires after the fact.
> 
>       If it's bound to a bizobj, field validation will prevent navigating  
> away from the control.

Here's my observation on what happens when a user leaves a control:

1) new control gets focus
2) prior control loses focus
3) flushValue() called from onLostFocus()
4) validateField() called
5) if validation failed, we set focus to the prior control

If we can catch a "user wants to move focus away" and prevent it before the 
above 
cycle occurs, that would be better. It's at least worth looking at.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to