Languages

messagedialog

[Genie] MessageDialog Testing

5
Your rating: None Average: 5 (1 vote)
[indent=4]
 
/* Build with valac --pkg gtk+-2.0 yourprogname.gs */
 
uses
    Gtk
 
class MessageDialog : Window
 
    init
        title = "Simple Message Dialog Test"
        window_position = WindowPosition.CENTER
        default_height = 200
        default_width = 350
        destroy += Gtk.main_quit
        var vbox = new VBox (true, 5)
        var button1 = new Button.with_label("Question")
        button1.clicked += question_clicked
        var button2 = new Button.with_label("Information")
        button2.clicked += information_clicked
        var button3 = new Button.
Syndicate content