FW: Distinguishing between event types

2009-08-10 Thread Steve Cookson
OK I'm making some progress. The event passes $self and $event to the subroutine. So I can use a handler that looks like this: sub __called_by_events { if ($event->GetEventType()=wxEVT_COMMAND_BUTTON_CLICKED) { do this_processing(); } But then I want to find out which control was clicked so I

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 making som

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
Hi Eric, Do you know of any documentation on Event Types and unpicking the variables passed as part of the event? If you do, I'd be pleased to pointed to it, if not, I'll pull some together afterwards, I feel it's really needed. I've been working on this now for four days. I'm comfortable

RE: Distinguishing between event types

2009-08-10 Thread Andri Möll
On Mon, 2009-08-10 at 13:56 -0300, Steve Cookson wrote: > Hi Eric, > > Do you know of any documentation on Event Types and unpicking the > variables passed > as part of the event? Have you already checked out wxWidgets' docs? http://docs.wxwidgets.org/trunk/overview_events.html http://docs.wxwi

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 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 Steve Cookson
Sorry missed off wxperl. Hi Ryan, Thanks for your advice. 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 t

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
Sorry missed off wxperl. Hi Andri, Thanks for this. I had seen the first but not the second. The second is a bit more helpful, but the problem I have with them is that they don't tell you what to do when you get to the subroutine Eg cross-validation or setting one field as a function of another

Re: xs for object returned by value

2009-08-10 Thread Doubi
Doubiman wrote: I've got a function in a wx object that I'm writing XS for that returns a another object, which doesn't inherit from any wx classes, by value (not a pointer to object), meaning the O_WXOBJECT, O_NON_WXOBJECT, T_PTROBJ and T_PTRREF typemaps give the error "cannot convert 'wxWebV