Re: [gtkmm] using a stock pixmap in a button



Tim Flechtner wrote:

i apologize if this is documented some place obvious, but i've looked, and i can't figure out how to set up a button to use a stock pixmap (i want to change the pixmap and label of a button at runtime). can anyone point me to documentation or provide an example?

thanks!
-tim

The stockbrowser demo which comes with gtkmm shows examples of this, as it retrieves stock icons and displays them in a TreeView and in a Gtk::Image widget. The code's a bit odd in places due to it having to probe the system to get a complete list of available stock items etc, but it should provide some useful pointers.




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