Re: [gtkmm] Button with icon?



On Fri, 2003-01-24 at 11:23, Murray Cumming wrote:
> On Fri, 2003-01-24 at 09:20, Markus Gerwinski wrote:
> > Hi folks,
> > 
> > can you tell me how to provide a button with a self-made icon? Is there a way
> > to add it to the Stock, together with different label strings for different
> > languages?
> 
> I suspect that regexxer does this. Maybe you could take a look at the
> source code and tell us how it does it.

I haven't looked at regexxer yet, but I think you want to use
Gtk::StockItem:
http://www.gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1StockItem.html#a8
and
Gtk::Stock::add():
http://www.gtkmm.org/gtkmm2/docs/reference/html/namespaceGtk_1_1Stock.html#a70

-- 
Murray Cumming
murray usa net
www.murrayc.com




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