comp.lang.ada
 help / color / mirror / Atom feed
* Gnoga Callback Handlers with user data
@ 2015-11-22 11:53 slos
  2015-11-22 15:42 ` David Botton
  0 siblings, 1 reply; 11+ messages in thread
From: slos @ 2015-11-22 11:53 UTC (permalink / raw)


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#handling-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éphane
"Ada for Automation"
http://slo-ist.fr/ada4autom

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-11-25  8:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox