Howto:Creating a Canvas GUI dialog file: Difference between revisions

Jump to navigation Jump to search
m
Line 47: Line 47:
     var vbox = VBoxLayout.new();
     var vbox = VBoxLayout.new();
     m._dlg.setLayout(vbox);
     m._dlg.setLayout(vbox);
    # this is where you can add widgets from $FG_ROOT/Nasal/canvas/gui/widgets, e.g.:
    vbox.addItem(
                canvas.gui.widgets.Button.new(m._root, style, {})
                            .setText( "my Button !" )
    );


     return m;
     return m;

Navigation menu