comp.lang.ada
 help / color / mirror / Atom feed
From: slos <new.stephane.los@gmail.com>
Subject: Re: Gnoga Callback Handlers with user data
Date: Mon, 23 Nov 2015 14:12:40 -0800 (PST)
Date: 2015-11-23T14:12:40-08:00	[thread overview]
Message-ID: <ffca4197-80bc-4a4e-9e8e-4480e0a63f5b@googlegroups.com> (raw)
In-Reply-To: <09fb4ec5-ec82-40d3-968e-d2d9b06e4c19@googlegroups.com>

Le lundi 23 novembre 2015 18:24:48 UTC+1, David Botton a écrit :
> > Well, that's what I would like to achieve but cannot figure out how.
> > Since what I get in the handler is the whole UI data, how can I figure out which element has triggered the event ?
> 
> Ok so given the code you posted.
> 
> if Object.Unique_ID = App.My_Button.Unique_ID
> 
> if Object.Unique_ID = App.My_Exit.Unique_ID
> 
> David Botton

OK, got it ! I shouldn't try to understand anything this late...
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.
Thanks for your explanations.

Stéphane

  reply	other threads:[~2015-11-23 22:12 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 [this message]
2015-11-23 23:34             ` David Botton
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