gtk - Tab creation with Gtkada -


i'm trying set hmi in ada gtkada , want have tabs (notebooks in gtk language).

i didn't found lot of documentation gtkada, here wrote doesn't work, have idea why? simple grey window opening.

with gtk.main;      use gtk.main; gtk.window;    use gtk.window; gtk.enums;     use gtk.enums; gtk.notebook;  use gtk.notebook; gtk.button;    use gtk.button; gtk.label;     use gtk.label;   procedure ihm    win                          : gtk_window;    notebook                     : gtk_notebook;    generationbutton             : gtk_button;    label_generation             : gtk_label; begin    init;     gtk_new (win, window_toplevel);    gtk_new (generationbutton);    gtk_new (notebook);    gtk_new (label_generation, "generation");    notebook.append_page (generationbutton, label_generation);    win.set_title ("generator");    win.set_default_size (1200, 800);    win.set_position (win_pos_center);    win.add (notebook);    win.show;     main; end ihm; 

substitute win.show win.show_all. show not recursive , not tell notebook show up. alternatively, can add notebook.show.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -