ITMSFNCMenuItemInteraction Interface
Extends ITMSFNCMenuItem with mouse and keyboard interaction callbacks invoked by the menu event loop.
API unit family: TMSFNCPopupMenu
Extends: ITMSFNCMenuItem
Syntax
ITMSFNCMenuItemInteraction = interface(ITMSFNCMenuItem)
Properties
| Name | Description |
|---|---|
| IsSelected | Whether the item is currently highlighted as the active selection in its containing menu view. True means the item is highlighted; False means it is not. (inherited from ITMSFNCMenuItem) |
| View | The menu view that directly contains this item. (inherited from ITMSFNCMenuItem) |
Methods
| Name | Description |
|---|---|
| CalcSize | Calculates the preferred size of the menu item in the current layout. (inherited from ITMSFNCMenuItem) |
| HavePopup | Returns True if this item has a sub-menu that should open when the given virtual key is pressed. (inherited from ITMSFNCMenuItem) |
| ItemKeyDown | Called when a key is pressed while this item is focused; allows the item to handle the key and suppress default navigation. |
| ItemMouseDown | Called when a mouse button is pressed over this item; allows the item to react and optionally suppress default handling. |
| ItemMouseUp | Called when a mouse button is released over this item; allows the item to react and optionally suppress default handling. |
| NeedPopup | Requests that the item open its associated sub-menu or popup. (inherited from ITMSFNCMenuItem) |