Vcl.Menus.TMenu.DispatchPopup

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DispatchPopup(AHandle: HMENU): Boolean;

C++

bool __fastcall DispatchPopup(HMENU AHandle);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMenu

Description

Dispatches a pop-up menu command.

Call DispatchPopup to simulate a click on the menu item associated with the pop-up menu handle. If DispatchPopup locates a menu item that matches the pop-up menu handle, it calls the Click method for that menu item and returns true. If there is no such item, DispatchPopup returns false.

See Also