Re: gtkmm comments



On Thu, 17 Mar 2005 14:21:03 -0700, John Taber <jtaber johntaber net> wrote:

Actually the problem comes in trying to set the icon later - I declare my
buttons in the header: Gtk::Button myButton; then in the constructor I was trying to use myButton.set_label(...) but that method only works for a string

you can declare the button in the header and then in the constructor you can do:

m_Button.set_label(Gtk::StockID::StockID(Gtk::Stock::OK).get_string());
m_Button.set_use_stock();

--
Marco



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