Vcl.DBCtrls.TCustomDBLookupComboBox.OnDropDown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDropDown: TNotifyEvent read FOnDropDown write FOnDropDown;

C++

__property System::Classes::TNotifyEvent OnDropDown = {read=FOnDropDown, write=FOnDropDown};

Properties

Type Visibility Source Unit Parent
event public
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TCustomDBLookupComboBox

Description

Occurs immediately before the lookup list is opened.

Write an OnDropDown event handler to take specific action before the lookup list is displayed to the user. The list can be opened by the user or by calling the DropDown method.

For a TDBLookupComboBox, the code should look like this:

procedure TForm1.DBLookupComboBox1DropDown(Sender: TObject);
begin
  StatusBar1.SimpleText := '';
end;


See Also