Vcl.DBCtrls.TDBLookupComboBox.OnDropDown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDropDown: TNotifyEvent read FOnDropDown write FOnDropDown;

C++

__property OnDropDown;

Properties

Type Visibility Source Unit Parent
event published
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBLookupComboBox

Description

Occurs immediately before the lookup list is opened.

Vcl.DBCtrls.TDBLookupComboBox.OnDropDown inherits from Vcl.DBCtrls.TCustomDBLookupComboBox.OnDropDown. All content below this line refers to Vcl.DBCtrls.TCustomDBLookupComboBox.OnDropDown.

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