TopMenuAction

Last Updated2014-06-27
Created At2007-09-26

Actions a top menu will take on an topobj.

EntryDescription
TopMenuAction_DisplayOptionAn option is being drawn for a menu (or for sorting purposes). INPUT : TopMenu Handle, topobj ID, client index. OUTPUT: Buffer for rendering, maxlength of buffer.
TopMenuAction_DisplayTitleThe title of a menu is being drawn for a given topobj. Note: The Object ID will be INVALID_TOPMENUOBJECT if drawing the root title. Otherwise, the Object ID is a category. INPUT : TopMenu Handle, topobj ID, client index. OUTPUT: Buffer for rendering, maxlength of buffer.
TopMenuAction_DrawOptionA menu option is being drawn and its flags can be overridden. INPUT : TopMenu Handle, topobj ID, client index. OUTPUT: The first byte of the 'buffer' string should be set to the desired flags. By default, it will contain ITEMDRAW_DEFAULT.
TopMenuAction_SelectOptionA menu option has been selected. The Object ID will always be an item (not a category). INPUT : TopMenu Handle, topobj ID, client index.
TopMenuAction_RemoveObjectCalled when an topobj is being removed from the menu. This can be used to clean up data stored in the info string. INPUT : TopMenu Handle, topobj ID.