Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | ATOMS
File : Details
Please login or create an account
Dear visitors/customers, we are migrating most of Scilab services into a new data center.
Note that login/registration will not be available for the moment.

Scilab menu item enabling/disabling

Macro to enable/disable a menu item in the main Scilab console
(62 downloads for this version - 62 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) in the Scilab console.

Indeed it is not easy to get the handle of the Scilab Console and its menus.
Also the 'enable' property does desactivate a menu item but does not put it in
gray. 
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.
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.