From: slos <new.stephane.los@gmail.com>
Subject: Gnoga Callback Handlers with user data
Date: Sun, 22 Nov 2015 03:53:54 -0800 (PST)
Date: 2015-11-22T03:53:54-08:00 [thread overview]
Message-ID: <a9594ffb-7548-48f5-9e77-0230202a5aa5@googlegroups.com> (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
next reply other threads:[~2015-11-22 11:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-22 11:53 slos [this message]
2015-11-22 15:42 ` Gnoga Callback Handlers with user data 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox