dynamically created event separation

szurilo szurilo at sch.bme.hu
Sun Feb 3 06:22:21 PST 2008


Actually these dont help me, because i have the same ID for the wxTextCtrls.
This is because i cannot give different IDs run time(actually i dont know
how many wxTextCtrls i have to create before the program is running) but i
have to separate these wxTextCtrls from other controls so i have to give a
'group' ID to them, if you know what i mean.
(As far as i know, if i give wxID_ANY to them, the event handler will be
called from other kinds of controls. But iam not sure of this. This solution
isnt good for me, again:/ )
Should i create an own event class deriving from the wxTextCtrl or
something?

Szurilo


Vadim Zeitlin-4 wrote:
> 
> On Sun, 3 Feb 2008 03:47:05 -0800 (PST) szurilo <szurilo at sch.bme.hu>
> wrote:
> 
> s> My problem is that is want to identify which wxTextCtrl send the event
> to
> s> the event handler function.
> 
>  Use GetId() and/or GetEventObject() methods of wxEvent passed to the
> handler to find it out.
> 
>  Regards,
> VZ
> 
> -- 
> TT-Solutions: wxWidgets consultancy and technical support
>                http://www.tt-solutions.com/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/dynamically-created-event-separation-tp15252679p15253842.html
Sent from the wxWidgets - Users mailing list archive at Nabble.com.





More information about the wx-users mailing list