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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.119.164 with SMTP id kv4mr27908580obb.9.1448321648817; Mon, 23 Nov 2015 15:34:08 -0800 (PST) X-Received: by 10.182.125.3 with SMTP id mm3mr206957obb.13.1448321648791; Mon, 23 Nov 2015 15:34:08 -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!mv3no1581402igc.0!news-out.google.com!f6ni11504igq.0!nntp.google.com!mv3no1581395igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 23 Nov 2015 15:34:08 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.138.108.113; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 50.138.108.113 References: <5f76d6a8-f733-4f36-89df-56eefcd795f8@googlegroups.com> <33bdc708-11fa-4091-8569-9436397e1695@googlegroups.com> <09fb4ec5-ec82-40d3-968e-d2d9b06e4c19@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <005dd7e5-0016-4f09-bb4b-a174574a9709@googlegroups.com> Subject: Re: Gnoga Callback Handlers with user data From: David Botton Injection-Date: Mon, 23 Nov 2015 23:34:08 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28514 Date: 2015-11-23T15:34:08-08:00 List-Id: > 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_Cont= rol.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