From: David Botton <david@botton.com>
Subject: Re: Gnoga Callback Handlers with user data
Date: Mon, 23 Nov 2015 15:34:08 -0800 (PST)
Date: 2015-11-23T15:34:08-08:00 [thread overview]
Message-ID: <005dd7e5-0016-4f09-bb4b-a174574a9709@googlegroups.com> (raw)
In-Reply-To: <ffca4197-80bc-4a4e-9e8e-4480e0a63f5b@googlegroups.com>
> 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
next prev parent reply other threads:[~2015-11-23 23:34 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 [this message]
2015-11-25 8:00 ` slos
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