dynamically created event separation
szurilo
szurilo at sch.bme.hu
Sun Feb 3 07:14:49 PST 2008
Ok, than what is the solution if i want some control that created dynamically
and if the user press <enter> in any of them my event handler know which one
is the sender.
I mean i run my (client) program, the server tells it create 4 wxTextCtrl.
The client create them and Connect() the event handler function, than it
should assign a number for example 3 if the user press the <enter> in the
3th wxTextCtrl.
getId() only tell a number(ID) that isnt help me bec. this number could be
any number like i told you it was 121 when i check it in my program before.
Szurilo
Vadim Zeitlin-4 wrote:
>
> On Sun, 3 Feb 2008 06:47:15 -0800 (PST) szurilo <szurilo at sch.bme.hu>
> wrote:
>
> s> Maybe i totally misunderstood event handling but here is my code:
> s> const long SRC_SRM_apiDialog::ID_FREQTEXTCTRL = wxNewId();//this create
> a
> s> new, unique integer number to this ID, isnt it?
>
> It does. But you can use it for one control only. So your example as
> given
> is ok but if you use the same id for more than one text control, then it
> is
> not.
>
> 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-tp15252679p15254288.html
Sent from the wxWidgets - Users mailing list archive at Nabble.com.
More information about the wx-users
mailing list