RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
Cookson'; wxperl-users@perl.org > Subject: RE: Distinguishing between event types > > > > My mistake, I was using wxEVT_COMMAND_KILL_FOCUS, when I should have > used wxEVT_KILL_FOCUS. > > Regards > > Steve > > > > __

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
users@perl.org Cc: Steve Cookson Subject: Re: Distinguishing between event types Hi Steve, Steve Cookson wrote: > I'm comfortable now with how to identify which event called the > event-handler, > but I'm still struggling to understand how to identify the variables > involved when &g

Re: Distinguishing between event types

2009-08-10 Thread Doubi
Hi Steve, Steve Cookson wrote: The specific event I am interested in is tabbing out of a field to trigger validation (ie a table lookup), however, this uses wxEVT_KILL_FOCUS. wxEVT_KILL_FOCUS only passes the id of the control that was clicked and event. It is also triggered when you do alt-tab

Re: Distinguishing between event types

2009-08-10 Thread Doubi
Hi Steve, Steve Cookson wrote: I'm comfortable now with how to identify which event called the event-handler, but I'm still struggling to understand how to identify the variables involved when $self is not passed as a parameter. Previously you wrote: OK I'm making some progress. The event pa

RE: Distinguishing between event types

2009-08-10 Thread Andri Möll
> From: Steve Cookson [mailto:steve.cook...@sca-uk.com] > Sent: 10 August 2009 09:02 > To: wxperl-users@perl.org > Subject: FW: Distinguishing between event types > > > > OK I'm making some progress. The event passes $self and $event > to the

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
Sent: 10 August 2009 11:24 To: 'Steve Cookson'; wxperl-users@perl.org Subject: RE: Distinguishing between event types My mistake, I was using wxEVT_COMMAND_KILL_FOCUS, when I should have used wxEVT_KILL_FOCUS. Regards Steve _ From: Steve Cookson [mailto:steve.cook...@sc

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
My mistake, I was using wxEVT_COMMAND_KILL_FOCUS, when I should have used wxEVT_KILL_FOCUS. Regards Steve _ From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Sent: 10 August 2009 09:02 To: wxperl-users@perl.org Subject: FW: Distinguishing between event types OK I'm m

FW: Distinguishing between event types

2009-08-10 Thread Steve Cookson
From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Sent: 10 August 2009 00:16 To: wxperl-users@perl.org Subject: Distinguishing between event types Hi, I have a number of events that call the same subroutine. The events may be a mixture of button events or lose focus events and I need to process

Distinguishing between event types

2009-08-09 Thread Steve Cookson
Hi, I have a number of events that call the same subroutine. The events may be a mixture of button events or lose focus events and I need to process differently depending on which event it is. Eg, A search button is the same a change value of text field and exit (loose focus). But if the wh