Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | ATOMS
File : Details

Scilab menu item enabling/disabling

Macro to enable/disable a menu item in the main Scilab console
(960 downloads for this version - 960 downloads for all versions)
Details
Version
1.0
Author
Simon MARCHETTO
Maintainer
Simon Marchetto
Category
License
Supported Scilab Version
5.5
Creation Date
November 23, 2016
Description
            This macro enables/disables a menu item of a default menu (like File, Edit,...)
or an added menu (toolbox menu) of the main Scilab panel (Console).

Indeed it is not easy to get the handle of menus of the Scilab Console panel.
Also the 'enable' property does desactivate a menu item but does not mask it. 
This function uses tricks to do all these. 

Given the menu label and the menu item label, it searches for the menu item in
all menus (but it does not take in account sub menus), and enables/disables it.            
Files (1)
[2.10 kB]
Miscellaneous file

News (0)
Comments (0)