Checked, Enabled and Displayed Property of Menu Items:
The displayed, checked and enabled property specifies the state of the menu item. There are the three properties explained that are given below.
Checked Property:
Specifies the state of a radio-style or check-box menu item, either UNCHECKED or CHECKED. This property is set programmatically only for the menu items with the Menu Item Type property set to Radio or Check.
Enabled Property:
It specifies whether the menu item could be displayed as an enabled (normal) item or disabled (grayed) item. That property of menu item is set programmatically.
Displayed Property:
It determines whether the menu item is visible or hidden at runtime or not. This property is set programmatically.
Getting the Value of the Menu Property:
The state of the menu item for the above three properties can be obtained by using the subsequent functions:
get_menu_item_property (menuitem_id, property)
get_menu_item_property (menu_name.menuitem_name, property)
The above function returns the state of the menu item provide the specific property. The return value is either it is TRUE or FALSE depending on the state of property that is if above function is used to check the enabled property of menu item then it returns TRUE if the menu item is enabled and FALSE if it is disabled.