[gtkada] Need help overloading Show_All
Preben Randhol
randhol at pvv.org
Tue May 14 11:54:15 CEST 2002
Arnaud Charlet <charlet at ACT-Europe.FR> wrote on 14/05/2002 (10:05) :
> I believe (code untested) that the following will do what you want:
>
> Show_All (Gtk_Widget_Record (Dialog.all)'Access)
>
> Remember that Gtk_Widget is an access all Gtk_Widget_Record'Class
> (note the 'Class), so you need to tell the compiler that you want to call
> the function on an access to a Gtk_Widget_Record, and not a
> Gtk_Widget_Record'Class (otherwise the call will be dispatching).
yeshi I see. Thanks it works! Have to reread on this in my Ada book :-)
> Welcome to the joy of object oriented programming with Ada ;-)
:-) yes
--
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
«For me, Ada95 puts back the joy in programming.»
More information about the gtkada
mailing list