Re: gtkmm comments
- From: "Timothy M. Shead" <tshead k-3d com>
- To: John Taber <jtaber johntaber net>
- Cc: gtkmm-list gnome org
- Subject: Re: gtkmm comments
- Date: Thu, 17 Mar 2005 21:56:40 -0800
John Taber 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
so I guess I have to instatiate the button in the constructor declaring the
icon. The error was referring to BuiltinStockID which is where I was getting
confused - what would be nice is to have a Button::set_Icon(...) or
set_label(..) method that would take the stock icon.
You can pack anything into a button that you like - the constructors
provided by GTKMM are just a convenience; internally, they are just
packing the label, icon, box, or whatever for you.
Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]