|
Using drop-down list
TCommonInspector can display the drop-down button in any line (see Adding the button into edit line). When the button type is btDropDown, the drop-down list is displayed if the user presses this button and all you need is filling this list with your own values by OnGetValuesList event:
procedure TForm1.CommonInspector1GetValuesList(Sender: TObject;
TheIndex: Integer; const Strings: TStrings);
begin
Strings.Text:='1'#13'2'#13'3';
end;
In this example the passed Strings is filled by '1', '2', '3' lines.
|