[gtkada] Basic questions about GtkAda

Pascal p.p14 at orange.fr
Sun Jul 8 17:57:33 CEST 2012


Hello Gautier,

I have put some basic explanations in:
http://blady.pagesperso-orange.fr/telechargements/gtkada/gtk-ada.pdf
from
http://blady.pagesperso-orange.fr/a_savoir.html#gtkada
(French language tutorials)

I began first with gate but as it has been discontinued in GtkAda, thus I switched to GtkBuilder.
So you'll find both in the tutorial.

Keep me informed of your progress ;-)

Regards, Pascal.
http://blady.pagesperso-orange.fr


Le 5 juil. 2012 à 13:35, Gautier de Montmollin a écrit :

> Found some answers by comparing the doc of both versions...
> 
> So, as I understand it...
> 
> 1) Until 2.x there was an Ada code generator, Gate. With the newer version, there is no more code generator, the UI information contained in the .glade file is loaded dynamically and objects.
> 
> 2-3) There is no more worry about the generated code since there is no more generated code...
> 
> Now it raise another question: with Gate you got a package
> 
> package Azip_Pkg is
> 
> 
>    type Azip_Record is new Gtk_Window_Record with record
> 
>       Vbox2 : Gtk_Vbox;
> 
>       Menubar1 : Gtk_Menu_Bar;
> 
>       Menuitem4 : Gtk_Menu_Item;
> 
>       Menuitem4_Menu : Gtk_Menu;
> 
>       New_Archive : Gtk_Image_Menu_Item;
> 
>       Image13 : Gtk_Image;
> 
>       Open_Archive : Gtk_Image_Menu_Item;
> 
> ...
> 
> So for instance you could have a panel with buttons inside, as Ada objects, right ? And it was possible to change dynamically items' properties, I suppose.
> 
> In GWindows, it would be things like: my_panel.button_2.Text("New label for this button");
> 
> Now, if there is no more generated code, where are the objects, e.g. the buttons ? Is everything going through callbacks ?
> 
> Thanks for any light...
> 
> Gautier
> 
> _______________________________________________
> gtkada mailing list
> gtkada at lists.adacore.com
> http://lists.adacore.com/mailman/listinfo/gtkada



More information about the gtkada mailing list