GtkDialog Constructor

GtkDialog (void);

Creates the basis for a dialog window.

Ejemplo 13. Creating a dialog window

<?php

$dialog = &new GtkDialog();
$dialog->set_policy(true, false, false);
$dialog->set_position(GTK_WIN_POS_CENTER);
$dialog->connect_object("destroy", array("gtk", 
"main_quit"));

$dialog_vbox = $dialog->vbox; 
$dialog_action_area = $dialog->action_area; 

$user_info_label = &new GtkLabel("Some Important Information");
$dialog_vbox->pack_start($user_info_label); 

$ok_button = &new GtkButton("OK");
$dialog_action_area->pack_start($ok_button);

gtk::main();

?>