Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | menu.item.checked 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.checked

Language: MioScript
Product: MioFactory


Syntax

menu.item.checked(MenuID, ItemID, isChecked)


Parameters

IDMenuIDID of the menu
IDItemIDID of the item
BOOLisCheckedOptional.
Set to true to check the menu item, false to unckeck it, or NULL to read the current status.


Return value

If isChecked 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 checked.

For a popup menu, this function must be called before the menu is shown with menu.popup.show.




MioScript Sample Code

// SET

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

// GET

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