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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 10.182.28.39 with SMTP id y7mr19832670obg.11.1448193235126; Sun, 22 Nov 2015 03:53:55 -0800 (PST) X-Received: by 10.182.128.100 with SMTP id nn4mr12292obb.18.1448193235102; Sun, 22 Nov 2015 03:53:55 -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!mv3no578369igc.0!news-out.google.com!f6ni10053igq.0!nntp.google.com!mv3no578365igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 22 Nov 2015 03:53:54 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.119.168.221; posting-account=O3LyFwoAAACc1uh60ZcOUmAGdDmGsEcV NNTP-Posting-Host: 80.119.168.221 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Gnoga Callback Handlers with user data From: slos Injection-Date: Sun, 22 Nov 2015 11:53:55 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28492 Date: 2015-11-22T03:53:54-08:00 List-Id: Hello there, I am training myself with this nice Gnoga framework and I have a question. Using for example GtkAda it is possible to have callback handlers with some= user data given when connecting the callback to the button let's say. http://docs.adacore.com/gtkada-docs/gtkada_ug/_build/html/signals.html#hand= ling-user-data Then you can have several buttons connected to the same handler which will = get different user data. In Gnoga I have not found this kind of handler. I can connect to my button : procedure On_Click_Handler (Object : in out Base_Type; Handler : in Action_Event); which takes only : type Action_Event is access procedure (Object : in out Base_Type'Class); So I cannot pass any user data of course : My_Button.On_Click_Handler (On_Click'Unrestricted_Access); But I may have missed something. Any suggestion welcome. Best Regards, St=E9phane "Ada for Automation" http://slo-ist.fr/ada4autom