[GRASS-dev] [GRASS GIS] #832: menu tree in help menu won't run commands

#832: menu tree in help menu won't run commands
----------------------+-----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------
Double clicking a menu tree item in the the help/menu tree will not run as
written.
[[BR]]
[[BR]]
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. [[BR]][[BR]]

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).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/832&gt;
GRASS GIS <http://grass.osgeo.org>

#832: menu tree in help menu won't run commands
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by cmbarton):

  * status: new => closed
  * resolution: => fixed

Comment:

Fixed in develbranch_6 r39922 and backported to trunk.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/832#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#832: menu tree in help menu won't run commands
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by martinl):

Replying to [comment:1 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().

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/832#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#832: menu tree in help menu won't run commands
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by cmbarton):

OK. Did you test?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/832#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#832: menu tree in help menu won't run commands
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by cmbarton):

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/832#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>