From: slos <new.stephane.los@gmail.com>
Subject: Re: Gnoga Callback Handlers with user data
Date: Mon, 23 Nov 2015 02:44:24 -0800 (PST)
Date: 2015-11-23T02:44:24-08:00 [thread overview]
Message-ID: <cd1528e0-f028-45b4-8a41-0b7eb19ac8de@googlegroups.com> (raw)
In-Reply-To: <c9e7fb9b-e85f-4f74-b378-af7a588527a2@googlegroups.com>
Dear Mister Botton,
Thanks for your answer.
Le lundi 23 novembre 2015 01:50:33 UTC+1, David Botton a écrit :
> > In your tutorial tutorial_04.adb we have :
> > App : App_Access := App_Access (Object.Connection_Data);
>
> Yes that is a feature of Gnoga that you can associate data with a connection (not the specific control in this case). You could for example then just do the Unique_ID comparisons with the potential buttons you reused the handler for.
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 ?
>
> You could also just associate arbitrary data with the buttons by setting attributes on them using My_Button.Attribute or subclass the buttons, use the ID in a map, etc. etc.
>
> The beauty of Gnoga is that it is not a binding like GtkAda but an actual Ada framework from the ground up so there is a wide range of possibilities of how to design your application and accomplish any give goal.
>
> If Ada will ever have a future beyond little black boxes, it is with Gnoga which leverages JS and HTML5 the way almost all modern cross platform (even native) apps are designed now. Just wish I had the time to do the needed development to get GNAT on to modern backends needed for client side development.
>
> > Yes I should but by writting here I wanted to show my interest for your project to others.
> > Does it hurt ?
>
> No not at all :) Just there are many people on the Gnoga list that do not read CLA and was concerned about you getting fast answers, but certainly can ask here.
>
> David Botton
Stéphane LOS
next prev parent reply other threads:[~2015-11-23 10:44 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 [this message]
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
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