Vcl.DBCtrls.TCustomDBLookupComboBox.OnDropDown
Delphi
property OnDropDown: TNotifyEvent read FOnDropDown write FOnDropDown;
C++
__property System::Classes::TNotifyEvent OnDropDown = {read=FOnDropDown, write=FOnDropDown};
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
event | public | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TCustomDBLookupComboBox |
Description
Se produit immédiatement après l'ouverture de la liste de recherche.
Ecrivez un gestionnaire d'événements OnDropDown pour exécuter des actions particulières avant que la liste de recherche ne soit affichée à l'utilisateur. La liste peut être ouverte par l'utilisateur ou en appelant la méthode DropDown.
Pour un TDBLookupComboBox, le code doit ressembler à ceci :
procedure TForm1.DBLookupComboBox1DropDown(Sender: TObject);
begin
StatusBar1.SimpleText := '';
end;