[gtkmm] MessageDialog example has error
- From: "B D Bird" <aviary tree ntlworld com>
- To: <gtkmm-list gnome org>
- Subject: [gtkmm] MessageDialog example has error
- Date: Sun, 15 Jun 2003 10:46:52 +0100
Hi,
Learning gtkmm, I tried out the messagedialog example in Chapter 13.
Small Extract:
void ExampleWindow::on_button_question_clicked()
{
Gtk::MessageDialog dialog(*this, "This is a QUESTION MessageDialog",
Gtk::MESSAGE_QUESTION, (Gtk::ButtonsType)(Gtk::BUTTONS_OK |
Gtk::BUTTONS_CANCEL));
It turns out you cannot OR two Buttons Types together. To get what is
obviously required you have to use BUTTONS_OK_CANCEL.
Regards,
Barry Bird
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]