Class Index Cross Index Namespace Index

Class Gtk::Dialog

Create popup windows.
Contained in: Gtk
Derived from: Gtk::Window
Derived by: Gtk::InputDialog

#include <gtk--/dialog.h>


public function member index:

Dialog();
HBox* get_action_area() const;
VBox* get_vbox() const;
GtkDialog* gtkobj();
const GtkDialog* gtkobj() const;
static bool isA(Object* object);
virtual ~Dialog();
 

Description:

Dialog boxes are a convenient way to prompt the user for a small amount of input, eg. to display a message, ask a question, or anything else that does not require extensive effort on the user's part.

Gtk-- treats a dialog as a window split horizontally. The top section is a Gtk::VBox, and is where widgets such as a Gtk::Label or a Gtk::Entry should be packed. The second area is known as the action_area. This is generally used for packing buttons into the dialog which may perform functions such as cancel, ok, or apply. The two areas are separated by a Gtk::HSeparator.

A 'modal' dialog (that is, one which freezes the rest of the application from user input), can be created by calling set_modal on the dialog.


Function Member Descriptions:

Gtk::Dialog::gtkobj - Returns the underlaying gtk+ object.

GtkDialog* gtkobj();

Gtk::Dialog::isA - Returns true if object is this type.

static bool isA(Object* object);