set_title("window1"); $window1->set_modal(false); $window1->realize(); $window1->connect('destroy', 'destroy'); $window1->connect('delete-event', 'delete_event'); $table1 = &new GtkTable(2,2); $table1->set_row_spacings(0); $table1->set_col_spacings(0); $table1->set_homogeneous(false); $window1->add($table1); $table1->show(); $label3 = &new GtkLabel("label3"); $label3->set_justify(GTK_JUSTIFY_LEFT); $label3->set_line_wrap(false); $label3->set_alignment(0,0.5); $label3->set_padding(0,0); $table1->attach($label3,0,1,0,1,GTK_FILL); $label3->show(); $button7 = &new GtkButton("button7"); $button7->set_relief(GTK_RELIEF_NORMAL); $table1->attach($button7,1,2,0,1,GTK_FILL); $button7->show(); $entry1 = &new GtkEntry(); $entry1->set_editable(true); $table1->attach($entry1,0,1,1,2); $entry1->show(); $table2 = &new GtkTable(3,3); $table2->set_row_spacings(0); $table2->set_col_spacings(0); $table2->set_homogeneous(false); $table1->attach($table2,1,2,1,2,GTK_FILL,GTK_FILL); $table2->show(); $label4 = &new GtkLabel("label4"); $label4->set_justify(GTK_JUSTIFY_LEFT); $label4->set_line_wrap(false); $label4->set_alignment(0,0.5); $label4->set_padding(0,0); $table2->attach($label4,2,3,0,1,GTK_FILL); $label4->show(); $togglebutton1 = &new GtkToggleButton("togglebutton1"); $togglebutton1->set_relief(GTK_RELIEF_NORMAL); $table2->attach($togglebutton1,0,1,1,2,GTK_FILL); $togglebutton1->show(); $hbox1 = &new GtkHBox(); $hbox1->set_homogeneous(false); $hbox1->set_spacing(0); $table2->attach($hbox1,1,2,1,2,GTK_FILL,GTK_FILL); $hbox1->show(); $label6 = &new GtkLabel("label6"); $label6->set_justify(GTK_JUSTIFY_LEFT); $label6->set_line_wrap(false); $label6->set_alignment(0.5,0.5); $label6->set_padding(0,0); $hbox1->add($label6); $label6->show(); $button8 = &new GtkButton("button8"); $button8->set_relief(GTK_RELIEF_NORMAL); $hbox1->add($button8); $button8->show(); $vbox1 = &new GtkVBox(); $vbox1->set_homogeneous(false); $vbox1->set_spacing(0); $table2->attach($vbox1,1,2,2,3,GTK_FILL,GTK_FILL); $vbox1->show(); $label7 = &new GtkLabel("label7"); $label7->set_justify(GTK_JUSTIFY_LEFT); $label7->set_line_wrap(false); $label7->set_alignment(0.5,0.5); $label7->set_padding(0,0); $vbox1->add($label7); $label7->show(); $entry2 = &new GtkEntry(); $entry2->set_editable(true); $vbox1->add($entry2); $entry2->show(); $label8 = &new GtkLabel("label8"); $label8->set_justify(GTK_JUSTIFY_LEFT); $label8->set_line_wrap(false); $label8->set_alignment(0,0.5); $label8->set_padding(0,0); $table2->attach($label8,2,3,1,2,GTK_FILL); $label8->show(); list($pixmap11, $mask11) = Gdk::pixmap_create_from_xpm($window1->window,null,"./pixmaps/cmarch.xpm"); $image1 = &new GtkPixmap($pixmap11,$mask11); $image1->set_alignment(0.5,0.5); $image1->set_padding(0,0); $table2->attach($image1,1,2,0,1,GTK_FILL,GTK_FILL); $image1->show(); $scrolledwindow1 = &new GtkScrolledWindow(); $scrolledwindow1->set_policy(GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC); $table2->attach($scrolledwindow1,0,1,0,1,GTK_FILL,GTK_FILL); $scrolledwindow1->show(); $textview1 = &new GtkText(); $textview1->set_editable(true); $textview1->set_word_wrap(true); $scrolledwindow1->add($textview1); $textview1->show(); $checkbutton1 = &new GtkCheckButton("checkbutton1"); $checkbutton1->set_relief(GTK_RELIEF_NORMAL); $table2->attach($checkbutton1,0,1,2,3,GTK_FILL); $checkbutton1->show(); $spinbutton1 = &new GtkSpinButton(); $adj14 = &new GtkAdjustment(1,0,100,1,10,10); $spinbutton1->configure($adj14,1,0); $spinbutton1->set_wrap(false); $spinbutton1->set_update_policy(GTK_UPDATE_ALWAYS); $spinbutton1->set_numeric(false); $table2->attach($spinbutton1,2,3,2,3); $spinbutton1->show(); /* Tells the window to show all elements */ $window1->show_all(); /* Finishes off the entire program */ Gtk::main(); ?>