Frequently Asked Component Specific Questions
Options |
|
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>

TMS Advanced Dropdown ControlsAdding cancel and ok buttons in TAdvMemoDropDown
To add cancel and ok buttons in the TAdvMemoDropDown component use the code below:
var
bOk, bCancel: TFooterButton;
begin
with AdvMemoDropDown1.DropDownFooter do
begin
bOk := Buttons.Add;
bOk.Caption := 'Ok';
bOk.ModalResult := mrOk;
bCancel := Buttons.Add;
bCancel.Caption := 'Cancel';
bCancel.ModalResult := mrCancel;
end;
end;