From: slos <new.stephane.los@gmail.com>
Subject: Re: Gnoga Callback Handlers with user data
Date: Wed, 25 Nov 2015 00:00:02 -0800 (PST)
Date: 2015-11-25T00:00:02-08:00 [thread overview]
Message-ID: <32457b44-0827-40c1-be39-274155915d8b@googlegroups.com> (raw)
In-Reply-To: <005dd7e5-0016-4f09-bb4b-a174574a9709@googlegroups.com>
Le mardi 24 novembre 2015 00:34:10 UTC+1, David Botton a écrit :
> > Well, since I cannot associate the access to the object that shall handle the click event as some user data, I have to set up some map to associate ID or Unique_ID to those object accesses because I don't want to check the IDs in a big if then else or case.
>
> You actually can associate specific data with any control, just use My_Control.Attribute (Key, Value) and to retrieve in the handler Object.Attribute (Key) of course in this case everything is a string.
>
> Alternatively you could also just extend the controls to include additional fields and then upcast Object to the appropriate extended control type.
>
> David Botton
Dear Mister Botton,
I think I prefer this last option but I have to analyse further on.
Thank you very much both for your framework that shines but also for your kind support.
BR,
Stéphane
next prev parent reply other threads:[~2015-11-25 8:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-22 11:53 Gnoga Callback Handlers with user data slos
2015-11-22 15:42 ` David Botton
2015-11-22 21:44 ` slos
2015-11-23 0:50 ` David Botton
2015-11-23 10:44 ` slos
2015-11-23 17:24 ` David Botton
2015-11-23 22:12 ` slos
2015-11-23 23:34 ` David Botton
2015-11-25 8:00 ` slos [this message]
2015-11-23 17:41 ` Jeffrey R. Carter
2015-11-23 22:19 ` slos
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox