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

Scilab menu item enabling/disabling

Macro to enable/disable a menu item in the main Scilab console
(1052 downloads for this version - 1052 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)
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.