Table of Contents

ITMSFNCMenuItemInteraction.ItemMouseDown Method

Called when a mouse button is pressed over this item; allows the item to react and optionally suppress default handling.

API unit family: TMSFNCPopupMenu Declaring type: ITMSFNCMenuItemInteraction

Syntax

procedure ItemMouseDown(AMouseInfo: TTMSFNCMenuItemMouseInfo; var AClosePopup: Boolean; var ADispatchHandling: Boolean);

Parameters

Name Description
AMouseInfo Mouse position, button, and modifier state at the time of the press.
AClosePopup Set to True to close the containing popup after handling.
ADispatchHandling Set to False to prevent the menu system from performing its default mouse-down response.