Name
SetTrayMenu -- set the tray menu (V11.0)
Synopsis
int ok = SetTrayMenu(APTR handle, struct hwMenuTreeInfo *menu,
             struct hwTagList *tags);
Function
This function is optional and must only be implemented if the HWEXT_DISPLAYADAPTER_TRAYMENU extension bit has been set. See Extension plugins for details. If that is the case, it must set the tray menu to the one passed in the menu parameter which is a struct hwMenuTreeInfo pointer which contains all nodes and leaves of the menu. See SetMenuBar for a description of this structure. Whenever the user selects a menu item, you need to post an HWEVT_MENUITEM event to Hollywood's event queue. See hw_PostEvent for details.

Note that if you want Hollywood to call this function, you also must set the HWSDAFLAGS_SETTRAYMENU flag in your call to hw_SetDisplayAdapter(). See hw_SetDisplayAdapter for details.

Inputs
handle
display handle returned by OpenDisplay()
menu
menu strip to set as a tray menu
tags
reserved for future use, currently always NULL

Show TOC