Page History
...
The ItemEnabled property enables or disables an item. A disabled item will still fire the OnClick event when the user clicks on it because the OnClick event always fires. However, disabled items will not respond to the mouse as it hovers over it. and its text is grayed. In other words, it gives all appearances of being disabled. Then the OnClick event fires, you should examine the ItemEnabled property before deciding whether or not to handle it.
Dynamic Index
...
Code Block |
---|
// Disable an item Set_Property(@Window:".OLE_SHORTCUT", "OLE.ItemEnabled[1; 1]", 0) // Enable all items in all groups Set_Property(@Window:".OLE_SHORTCUT", "OLE.ItemEnabled[All; All]", 1) |