Re: Gtk::Stock::CLOSE
- From: "B.Hakvoort" <bart hakvoort be>
- To: bob fis-cal com
- Cc: Gtkmm List <gtkmm-list gnome org>
- Subject: Re: Gtk::Stock::CLOSE
- Date: Wed, 07 Dec 2005 14:23:24 +0100
afaik a 'stockbutton' will contain an image and a caption...
If i read his message (which is a bit vague imho ;) ) correctly, he
wants buttons for closing and help containing the icon and the text.
This is exactly what a 'stockbutton' will give you.
cheers,
plors
On Wed, 2005-12-07 at 07:10 -0600, Bob Caryl wrote:
> If you look at his code, he doesn't want to create a button from a stock
> item.. .he wants a caption AND an image on the button.
>
> Bob
>
> B.Hakvoort wrote:
>
> >Hi,
> >
> >maybe i'm getting you wrong, but creating a button from a stockitem is
> >very easy. Take a look at :
> >http://gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Button.html#43f938099b8e0ac9df2cc669981bd1b8
> >
> >good luck,
> >
> >plors
> >
> >On Tue, 2005-12-06 at 12:32 -0500, Jamiil wrote:
> >
> >
> >>I hope someone here will be able to help me.
> >>I have a program with two buttons; the buttons are supposed to display
> >>its correspoding icon for closing or help. Neither of the buttons
> >>display its corresponding icons, and although the porgram compiles I get
> >>the following message:
> >>=================================================
> >>
> >>Info: resolving Gtk::Stock::CLOSE by linking to
> >>__imp___ZN3Gtk5Stock5CLOSEE (auto-import)
> >>Info: resolving Gtk::Stock::HELP by linking to
> >>__imp___ZN3Gtk5Stock4HELPE (auto-import)
> >>
> >>Execution terminated
> >>Compilation successful
> >>===================================================
> >>
> >>This are the variables for the help button:
> >>
> >>btnHelp->set_use_underline(true);
> >>btnHelp->set_focus_on_click(true);
> >>btnHelp->set_use_stock(true);
> >>btnHelp->set_label("Question");
> >>btnHelp->add_pixlabel("/icons/Question.ico","_Help");
> >>btnHelp->signal_clicked().connect( sigc::mem_fun(*this, &Jaime::UnderDev) );
> >>
> >>Any body?
> >>
> >>
> >>
> >
> >_______________________________________________
> >gtkmm-list mailing list
> >gtkmm-list gnome org
> >http://mail.gnome.org/mailman/listinfo/gtkmm-list
> >
> >
> >
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]