Class Index Cross Index Namespace Index

Class Gnome::MessageBox

Create popup windows for simple messages.
Contained in: Gnome
Derived from: Gnome::Dialog
Derived by: none

#include <gtk--/messagebox.h>


public function member index:

MessageBox(const Gtk::nstring& message, const Gtk::nstring& messagebox_type, const Gtk::SArray& buttons);
MessageBox(const Gtk::nstring& message = 0, const Gtk::nstring& messagebox_type = 0);
static GtkType get_type();
GnomeMessageBox* gtkobj();
const GnomeMessageBox* gtkobj() const;
static bool isA(Gtk::Object* checkcast);
virtual ~MessageBox();
 

protected function member index:

explicit MessageBox(GnomeMessageBox* castitem);
void initialize_class();
 

private function member index:

MessageBox(const MessageBox&);
MessageBox& operator =(const MessageBox&);
 

Description:

Unlike GnomeMessageBox in C, Gnome::MessageBox does not self-destruct when run() or run_and_close() returns, so you can use it again. Just delete it later, like any other Window.


Function Member Descriptions:

Gnome::MessageBox::MessageBox - Use stock names to get stock features, or just use your own text.

MessageBox(const Gtk::nstring& message, const Gtk::nstring& messagebox_type, const Gtk::SArray& buttons);
message: The text to be displayed. messagebox_type: GNOME_MESSAGE_BOX_INFO, GNOME_MESSAGE_BOX_WARNING, GNOME_MESSAGE_BOX_ERROR , GNOME_MESSAGE_BOX_QUESTION, GNOME_MESSAGE_BOX_GENERIC buttons: e.g. GNOME_STOCK_BUTTON_OK: See gnome-stock.h Alternatively, add the buttons later with append_button().



Variable Member Descriptions: