![]() |
Previous Top Next |
tcTreeComboBox component.
|
property OnDropDown: TNotifyEvent;
|
The OnDropDown event occurs when the user clicks the combo box (or its button at the right side), and the drop-down window with tree nodes is about to appear on screen.
|
|
Write the OnDropDown event handler to perform some specific actions (for example, resize the drop-down window) before the tree nodes appears on screen.
|
|
![]() |
procedure TForm1.tcTreeComboBox1DropDown(Sender: TObject);
|
begin
|
tcTreeComboBox1.DropDownWidth := Random(200) + 20;
|
// also you can expand some nodes of embedded TreeView
|
tcTreeComboBox1.TreeView.FullExpand;
|
end;
|
OnAfterDropDown and OnCloseUp events;
|
DropDownWidth, TreeOptions and TreeView properties.
|