Re: Help using Gtk::MessageDialog()



Add the hide() function call....

jalqadir netscape net wrote:


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();
  dialog->hide(); // <---add this
}
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

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



--
Jason Burchfield
CAS, Inc.
(256) 971-6096
Jason Burchfield cas-inc com




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