Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS Advanced Dropdown Controls
Adding 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;
These buttons will allow you to save or cancel the text you have inserted in the Memo control.