Re: [gtkmm] Button question



Benoît Touron <B Touron citb bull net> writes:

> Hello there !
>
> I need to create a button containing an stock image (built in GTK),
> like Gtk::Stock::CANCEL.
> If I pass Gtk::Stock::CANCEL to the button's constructor, then the
> button contains the image AND the text (cancel).
> How can I avoid the button to display the text ?
>

Use the Gtk::Button::add_pixlabel() member function to set the pixmap
and optional text you want(or don't) displayed.  See the example
program:

gtkmm/examples/book/buttons/button




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