Re: keyboard short cuts/accelerators



On Sat, 2009-03-07 at 19:49 -0500, José Alburquerque wrote:
> On Sat, 2009-03-07 at 16:28 +1100, Grizzly(Francis Smit) wrote: 
> > but how do I get the little 
> > label telling me what the accel is next to the item i.e. the Crtl+C Ctrl+D 
> > or whatever.  I have tried add_accel_label(const Glib::ustring& label, bool mnemonic=true) 
> > but it doesn't work :( 
> 
> I don't really have an answer but I remember that with buttons, an
> underscore ('_') sets the mnemonic for the button and something similar
> may be done with menus.  I would refer you to the chapter on menus[1] of
> the online book.
> 
> [1]
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/chapter-menus-and-toolbars.html

The following gtk+ documentation may also be useful:

http://library.gnome.org/devel/gtk/2.13/GtkMenuItem.html#gtk-menu-item-set-accel-path
http://library.gnome.org/devel/gtk/2.13/gtk-Accelerator-Maps.html#gtk-accel-map-add-entry

I've never used any of this so I couldn't explain it more than the docs
do.  :-)


-- 
José Alburquerque
jaalburquerque cox net



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