Removing an accelerator from a menu



Hi,

I have a menu that has the list of most recently used files. When I
generate it I assign an accelerator key to the first file in the list.

New files are inserted to the top of the list. However, now I want to
remove the accelerator from what was the first file in the list which
is now the second file list. Of course when the new file is inserted
the accelerator is added too.

How do I do that? I tried using entryconfigure without success, but
that seems to the most logical way to do it.

Thanks,

Bob Lipman

.



Relevant Pages

  • Re: Removing an accelerator from a menu
    ... Robert Lipman wrote: ... generate it I assign an accelerator key to the first file in the list. ... entryconfigure is the only choice. ...
    (comp.lang.tcl)
  • Re: Is it possible to add
    ... This is impossible in plain-vanilla Matlab. ... So let's first get the Java ... So let's modify the default File/Save accelerator ... automatically to reflect the new keyboard accelerator key. ...
    (comp.soft-sys.matlab)
  • Re: accelerator calling member function twice
    ... The function is being called with the the ON_COMMAND macro. ... All I did was add the Accelerator to the accelerator table in VC++ and let ... >> I've defined a accelerator key on a menu item. ... >> When i'm using the shortcut, my handler method is called twice ...
    (microsoft.public.vc.mfc)
  • Re: How to get Acceleration Key for specific MenuItem ?
    ... If the accelerator you want is the underlined letter, ... do this with GetMenuItemInfo (assuming the menu's not in your app). ... look in the string for a single & character, and the next character is the ... accelerator key. ...
    (microsoft.public.vb.winapi)
  • Re: Printable character as JMenuItem accelerator not properly consumed
    ... than code snippets. ... ("printable" key used as JMenu accelerator not consumed) ... Is there any way programmatically consume the ...
    (comp.lang.java.gui)