Good practice with accelerators.
- From: Michael Meeks <michael helixcode com>
- To: Darin Adler <darin eazel com>, John Sullivan <sullivan eazel com>
- Cc: gnome-components-list gnome org
- Subject: Good practice with accelerators.
- Date: Wed, 11 Oct 2000 11:42:40 -0400 (EDT)
I just added this to the ui-faq:
** But what about acclerators ?
** How do I get rid of '_'s in my toolbar labels.
Since accelerators are clearly part of the widget and not the
command it is important to put labels with accelerators in them in
the widget and not the command node. _But_ it is also important to
ensure that a non-accelerated version is left in the command for use
by GUI configuration software as a default label, it would also be
wise to use this as the default toolbar label. So this is good
practice:
<Root>
<commands>
<cmd name="FileOpen" _label="Open" hidden="1"
_tip="Open a file" pixtype="stock" pixname="Open"
accel="F3"/>
</commands>
<menu>
<menuitem name="FileOpen" verb="" _label="_Open..."/>
</menu>
</Root>
See std-ui.xml for a set of correctly organised useful cmd
and widget descriptions.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]