From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.136.68 with SMTP id y65mr34313009ywf.53.1448438402704; Wed, 25 Nov 2015 00:00:02 -0800 (PST) X-Received: by 10.182.44.169 with SMTP id f9mr426675obm.16.1448438402672; Wed, 25 Nov 2015 00:00:02 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!b51no2344653qgf.0!news-out.google.com!f6ni12947igq.0!nntp.google.com!mv3no2876847igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 25 Nov 2015 00:00:02 -0800 (PST) In-Reply-To: <005dd7e5-0016-4f09-bb4b-a174574a9709@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.228.9.219; posting-account=O3LyFwoAAACc1uh60ZcOUmAGdDmGsEcV NNTP-Posting-Host: 82.228.9.219 References: <5f76d6a8-f733-4f36-89df-56eefcd795f8@googlegroups.com> <33bdc708-11fa-4091-8569-9436397e1695@googlegroups.com> <09fb4ec5-ec82-40d3-968e-d2d9b06e4c19@googlegroups.com> <005dd7e5-0016-4f09-bb4b-a174574a9709@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <32457b44-0827-40c1-be39-274155915d8b@googlegroups.com> Subject: Re: Gnoga Callback Handlers with user data From: slos Injection-Date: Wed, 25 Nov 2015 08:00:02 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28532 Date: 2015-11-25T00:00:02-08:00 List-Id: Le mardi 24 novembre 2015 00:34:10 UTC+1, David Botton a =E9crit=A0: > > Well, since I cannot associate the access to the object that shall hand= le the click event as some user data, I have to set up some map to associat= e ID or Unique_ID to those object accesses because I don't want to check th= e IDs in a big if then else or case. >=20 > You actually can associate specific data with any control, just use My_Co= ntrol.Attribute (Key, Value) and to retrieve in the handler Object.Attribut= e (Key) of course in this case everything is a string. >=20 > Alternatively you could also just extend the controls to include addition= al fields and then upcast Object to the appropriate extended control type. >=20 > 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 k= ind support. BR, St=E9phane