Vcl.Menus.TMenu.DispatchCommand
Delphi
function DispatchCommand(ACommand: Word): Boolean;
C++
bool __fastcall DispatchCommand(System::Word ACommand);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TMenu |
Description
Appelle la méthode Click de l'élément de menu ayant la valeur spécifiée dans sa propriété Command.
Appelez la méthode DispatchCommand pour simuler le choix d'un élément de menu associé à un identificateur de commande. Si DispatchCommand trouve l'élément de menu correspondant à l'identificateur de commande, elle appelle la méthode Click de cet élément de menu et renvoie true. S'il n'existe pas un tel élément, DispatchCommand renvoie false.