Hi, It doesnât make sense to use the manage() (widget life-cycle) function because a Gtk::MessagDialog has no parent container. Itâs like a Gtk::Window... I recommend you this way to instantiate your MessageDialog into your UIException constructor : // declaration jit Gtk::MessageDialog MyExceptionMessageDialog( *this, ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ âMy message,,,,â, ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂFalse /*use markup*/, ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ÂÂÂÂÂ Gtk::MESSAGE_QUESTION, ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ Gtk::BUTTONS_OK_CANCEL ÂÂÂÂÂ ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ); MyExceptionMessageDialog.set_secondary_text(âonce upon a time ...â); // just for illustration MyExceptionMessageDialog.run(); // start the message dialog Int response = MyExceptionMessageDialog.run() // capture the user action std::cout<<((response == Gtk::RESPONSE_OK) ? âyou pressed OKâ : âyou pressed cancelâ)<<std::endl; Marco Dos Santos Oliveira EBU/European Broadcasting Union Technology and Innovation Department From: gtkmm-list [mailto:gtkmm-list-bounces gnome org] On Behalf Of Doesnt Stop I am trying to create a gui interface for my Exception class, but I am getting some errors from GTKmm library, this is the error message: 1>------ Build starte[drive:] Project: vsApp, Configuration: Debug Win32 ------ undeclared identifier undeclared identifier illegal use of this type as an _expression_ 'GString' initializers Earlier I was hit a wall like the one I am hitting now, but soldatov cleared things up when informed me that, since I am using VS10, I need to add this line in the main.cpp Now, could this problem be because I need to add other code than the one used in the examples? This is the code: uiexception.hpp #include "../../exception/exception.hpp" namespace ns{ #endif uiexception.cpp ns::uiexception::uiexception(){ what could be causing this error messages?
************************************************** |