Hi Johan,

I have looked at them, but I didn't totally understand how they work.
I'm using them for integer entry and time entry, but field lookup,
I'm not clear what I should do.  Do you think I can use the validators
for lookup?

Regards

Steve




-----Original Message-----
From: Johan Vromans [mailto:jvrom...@squirrel.nl] 
Sent: 15 August 2009 14:16
To: Steve Cookson
Subject: Re: wxGlade Generated Code

"Steve Cookson" <steve.cook...@sca-uk.com> writes:

> So if I want to detect tabbing out of a field 
> to trigger validation, I use the lose focus event (EVT_KILL_FOCUS) on
> the control. But alt-tab (and I guess alt-esc etc) to another app 
> also trigger it.  How can I filter out alt-tab etc?

Using EVT_KILL_FOCUS for field validation is generally a bad idea, for
reasons you've already experienced.

Have you looked at the validators?

-- Johan

Reply via email to