Vcl.DBCtrls.TCustomDBLookupComboBox.OnCloseUp
Delphi
property OnCloseUp: TNotifyEvent read FOnCloseUp write FOnCloseUp;
C++
__property System::Classes::TNotifyEvent OnCloseUp = {read=FOnCloseUp, write=FOnCloseUp};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TCustomDBLookupComboBox |
Description
Occurs immediately after an opened or "dropped-down" list is closed.
Write an OnCloseUp event handler to respond when the combo box list is closed. When the list is closed, the value that corresponds to the selected lookup value is assigned to the field. The list can be closed by the user or by calling the CloseUp method.
For a TDBLookupComboBox, the code should look like this:
procedure TForm1.DBLookupComboBox1CloseUp(Sender: TObject);
begin
StatusBar1.SimpleText := DBLookupComboBox1.Text;
end;