Name
SetMenuAttributes -- change menu item attributes (V9.0)
Synopsis
int ok = SetMenuAttributes(APTR display, struct hwMenuTreeInfo *item,
             ULONG setflags, ULONG clrflags, struct hwTagList *tags);
Function
This function is optional and must only be implemented if the HWEXT_DISPLAYADAPTER_MENUADAPTER extension bit has been set. See Extension plugins for details. If that is the case, SetMenuAttributes() will be called by Hollywood to select or deselect a menu item or to enable or disable it. The menu item to be modified will be passed in the item parameter. The setflags parameter indicates which menu item flags should be set and the clrflags parameter indiciates which menu item flags should be cleared.

The following menu item flags are recognized by SetMenuAttributes():

HWMENUFLAGS_SELECTED:
Select or deselect menu item.

HWMENUFLAGS_DISABLED:
Enable or disable menu item.

Inputs
handle
display handle returned by OpenDisplay()
item
menu item to modify
setflags
flags that should be set (see above)
clrflags
flags that should be cleared (see above)
tags
reserved for future use, currently always NULL
Results
ok
return True to indicate success, False to indicate failure

Show TOC