Re: [gtkmm] Button question
- From: Billy O'Connor <billyoc gnuyork org>
- To: Benoît Touron <B Touron citb bull net>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Button question
- Date: Tue, 27 Jan 2004 14:13:01 -0500
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]