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.68.237.135 with SMTP id vc7mr21652360pbc.11.1448239831965; Sun, 22 Nov 2015 16:50:31 -0800 (PST) X-Received: by 10.182.73.167 with SMTP id m7mr278444obv.11.1448239831916; Sun, 22 Nov 2015 16:50:31 -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!mv3no853879igc.0!news-out.google.com!f6ni10584igq.0!nntp.google.com!mv3no853876igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 22 Nov 2015 16:50:31 -0800 (PST) In-Reply-To: <33bdc708-11fa-4091-8569-9436397e1695@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.250.123.221; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 50.250.123.221 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: David Botton Injection-Date: Mon, 23 Nov 2015 00:50:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28498 Date: 2015-11-22T16:50:31-08:00 List-Id: > In your tutorial tutorial_04.adb we have : > App : App_Access :=3D App_Access (Object.Connection_Data); Yes that is a feature of Gnoga that you can associate data with a connectio= n (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 hand= ler for. You could also just associate arbitrary data with the buttons by setting at= tributes 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 A= da framework from the ground up so there is a wide range of possibilities o= f 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 d= evelopment to get GNAT on to modern backends needed for client side develop= ment. > Yes I should but by writting here I wanted to show my interest for your p= roject to others. > Does it hurt ? No not at all :) Just there are many people on the Gnoga list that do not r= ead CLA and was concerned about you getting fast answers, but certainly can= ask here. David Botton