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



Using custom inplace editors
In order to use any TWinControl descendent as inplace editor in the TAdvCardList, create a descendent class from TCardListEditLink. In this class, override following methods:
function CreateControl: TWinControl;
Creates a new instance of the inplace editor
procedure SetProperties;
Method called when focus is set to the inplace editor to allow to set additional custom inplace editor properties
procedure SetSelection(SelStart, SelLength: integer);
Method called to set selection within the inplace editor.
procedure SetFocus;
Method called to set the focus to the inplace editor
procedure ValueToControl(value: variant);
Method called to transfer the value of the card list item to the inplace editor (when editing starts)
function ControlToValue: variant; override;
Method called to transfer the value inplace editor to the card list item (when editing ends)
Two sample edit link interfaces are provided with TAdvCardList, one for a spin edit control and one for TAdvEdit.