RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenu.DispatchPopup Method

Dispatches a pop-up menu command.

Pascal
function DispatchPopup(AHandle: HMENU): Boolean;
C++
__fastcall Boolean DispatchPopup(HMENU AHandle);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!