RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBLookupComboBox.OnCloseUp Event

Occurs immediately after an opened or "dropped-down" list is closed.

Pascal
property OnCloseUp: TNotifyEvent;
C++
__property TNotifyEvent OnCloseUp;

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.

procedure TForm1.DBLookupComboBox1CloseUp(Sender: TObject);
begin
  StatusBar1.SimpleText := DBLookupComboBox1.Text;
end;

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!