Class TSampleTreeSelect (unit TestSelectForm)

Inherits from

TTreeSelect

This is a sample-TTreeSelect-form with two buttons. The first button shows how to clear the key-field. The second button calls a dialog that allows the user to edit the detail-table. The OnActivate-event is used to adjust the size of the TreeView and the buttons at runtime. The height of the form changes if DropdownHeight of the calling DbTreeLookupComboBox is not zero, the width changes always at runtime.

Constructors



Functions

procedure BitBtn1Click(Sender: TObject);

The dialog that allows the user to make changes at the detail-table:

procedure BitBtn2Click(Sender: TObject);


procedure FormActivate(Sender: TObject);

DBTreeView.

Properties

Events

Variables

BitBtn1 : TBitBtn;


BitBtn2 : TBitBtn;


Context1 : TMenuItem;


DBTreeView1 : TDBTreeView;


Label1 : TLabel;


Menu1 : TMenuItem;


N1 : TMenuItem;


PopupMenu1 : TPopupMenu;


Test1 : TMenuItem;



Constructors


Functions


procedure BitBtn1Click(Sender: TObject);

The dialog that allows the user to make changes at the detail-table:


procedure BitBtn2Click(Sender: TObject);


procedure FormActivate(Sender: TObject);

DBTreeView.Dataset.Refresh: not needed any more


Properties


Events


Variables


BitBtn1 : TBitBtn;


BitBtn2 : TBitBtn;


Context1 : TMenuItem;


DBTreeView1 : TDBTreeView;


Label1 : TLabel;


Menu1 : TMenuItem;


N1 : TMenuItem;


PopupMenu1 : TPopupMenu;


Test1 : TMenuItem;