Help using Gtk::MessageDialog()




class MyClas : public virtual HBox{
private:
Gtk::MessageDialog* dialog;
Glib::ustring msg;
public:
void Display();

MyClass::Display(){
        dialog = new Gtk::MessageDialog(
         msg,                        //Message
         false,                        // Markup
         Gtk::MESSAGE_INFO,  //MessageType
         Gtk::BUTTONS_OK,    //Buttons
         false);                       //modal

  dialog->run();

}
The message dialog box displays with the right message, but when I press the OK button nothing happens!!
What am I doing wrong?
Anybody?

TIA
* You cannot exercise your power to a point of humiliation.
                      - Jean Chretien

* It's amazing how the small seeds of distrust and misunderstanding
can yield a crop of hate and death...

* If that document has fine printing anywhere, just chuck it in the garbage
                     - Jorge Escalante
Ma'assalama! Adiós! bye!
___________________________________________________
Try the New Netscape Mail Today!
Virtually Spam-Free | More Storage | Import Your Contact List
http://mail.netscape.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]