Puzzled: how to display bindkey on the assosiated menu bar ?

S

sunkey

Guest
I create a menu , and list a site of menu-item
which are some funcs defined by myself. I also define the bindkey to those
functions, and both the menu/bindkey call the funcs well.

what i confused is, as we can c on the other system default menu, it can
display the bindkey on the side of the menu item, as follow:

Copy c

but my own created menu didnt display the bindkey setting , even if i
defined.

anyone can tell me why ??

thx a lot !
 
In article <fa57bbccbf7286e9d1fa588f7ce62da6@localhost.talkaboutcad.com> "sunkey" <sunkey@263.net> writes:
I create a menu , and list a site of menu-item
which are some funcs defined by myself. I also define the bindkey to those
functions, and both the menu/bindkey call the funcs well.

what i confused is, as we can c on the other system default menu, it can
display the bindkey on the side of the menu item, as follow:

Copy c

but my own created menu didnt display the bindkey setting , even if i
defined.

anyone can tell me why ??
First, the bindkey command string and the menu command string have to be
exactly the same. For example, if the bindkey command string is "myfunc()"
and the menu command string is "myfunc( )", then it won't compare the same.

Second, if the strings are the same, sometimes the shortcut doesn't show on
the menu if you define the bindkey first. Try defining the menu and putting
that on the window first and then defining the bindkey. That may fix it.

-Pete Zakel
(phz@seeheader.nospam)

"If you wants to get elected president, you'se got to think up some
memoraboble homily so's school kids can be pestered into memorizin'
it, even if they don't know what it means."
-Walt Kelly
 
thx kelly a lot~~ it's excactlly as u said that the 2 point will effect
the finally appear of short-cut key on the menu ~~ !!

thx again , and with ur help, all my menu looks more profersinal now ..
:)
 

Welcome to EDABoard.com

Sponsor

Back
Top