Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | menu.item.enabled SEARCH    

  Functions
menu.add.item
menu.add.popup
menu.add.separator
menu.create
menu.destroy
menu.getItem
menu.item.checked
menu.item.enabled
menu.item.radio
menu.popup.create
menu.popup.show
menu.redraw
menu.set

  Events
event.menu:click

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
menu.item.enabled

Language: MioScript
Product: MioFactory


Syntax

menu.item.enabled(MenuID, ItemID, isEnabled)


Parameters

IDMenuIDID of the menu
IDItemIDID of the item
BOOLisEnabledOptional.
Set to true to enable the menu item, false to disable it, or NULL to read the current status.


Return value

If isEnabled is set to NULL, the function returns the current status of the menu item.



Description

Use this function to read or set if the menu item is enabled.




MioScript Sample Code

// SET

menu.item.enabled(&menuID, &thisItemID, true)

// GET

&isChecked = menu.item.enabled(&menuID, &thisItemID)