Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#832 closed defect (fixed)

menu tree in help menu won't run commands

Reported by: cmbarton Owned by: grass-dev@…
Priority: normal Milestone: 6.5.0
Component: wxGUI Version: svn-develbranch6
Keywords: Cc:
CPU: All Platform: All

Description

Double clicking a menu tree item in the the help/menu tree will not run as written.

RunMenuCmd will only accept an event from selecting a menu object. It won't run if you pass it a command. Probably a command from this interface needs to be run through the command-line interface code rather than the menu event handlers.

Also, the static text box needs to be instantiated before its contents are defined or it is not accessible to Mac users (I don't know about Windows).

Change History (4)

comment:1 by cmbarton, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in develbranch_6 r39922 and backported to trunk.

in reply to:  1 comment:2 by martinl, 15 years ago

Replying to cmbarton:

Fixed in develbranch_6 r39922 and backported to trunk.

Partly reverted in r39925. Menu items are not only GRASS commands, eval() is needed to used instead of RunCmd().

comment:3 by cmbarton, 15 years ago

OK. Did you test?

comment:4 by cmbarton, 15 years ago

r39928 should make this work with the rest of the menu items.

Note: See TracTickets for help on using tickets.