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.98.75.210 with SMTP id d79mr11451196pfj.12.1448275464664; Mon, 23 Nov 2015 02:44:24 -0800 (PST) X-Received: by 10.182.125.3 with SMTP id mm3mr163592obb.13.1448275464624; Mon, 23 Nov 2015 02:44:24 -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!mv3no1047913igc.0!news-out.google.com!l1ni6344igd.0!nntp.google.com!mv3no577928igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 23 Nov 2015 02:44:24 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.251.73.50; posting-account=O3LyFwoAAACc1uh60ZcOUmAGdDmGsEcV NNTP-Posting-Host: 193.251.73.50 References: <5f76d6a8-f733-4f36-89df-56eefcd795f8@googlegroups.com> <33bdc708-11fa-4091-8569-9436397e1695@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Gnoga Callback Handlers with user data From: slos Injection-Date: Mon, 23 Nov 2015 10:44:24 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28501 Date: 2015-11-23T02:44:24-08:00 List-Id: Dear Mister Botton, Thanks for your answer. Le lundi 23 novembre 2015 01:50:33 UTC+1, David Botton a =E9crit=A0: > > In your tutorial tutorial_04.adb we have : > > App : App_Access :=3D App_Access (Object.Connection_Data); >=20 > Yes that is a feature of Gnoga that you can associate data with a connect= ion (not the specific control in this case). You could for example then jus= t do the Unique_ID comparisons with the potential buttons you reused the ha= ndler 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 ? >=20 > You could also just associate arbitrary data with the buttons by setting = attributes on them using My_Button.Attribute or subclass the buttons, use t= he ID in a map, etc. etc. >=20 > 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. >=20 > If Ada will ever have a future beyond little black boxes, it is with Gnog= a which leverages JS and HTML5 the way almost all modern cross platform (ev= en 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 devel= opment. >=20 > > Yes I should but by writting here I wanted to show my interest for your= project to others. > > Does it hurt ? >=20 > 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 c= an ask here. >=20 > David Botton St=E9phane LOS