[Lazarus] Pick List as a Value List item
Bart
bartjunk64 at gmail.com
Tue Dec 3 19:24:01 CET 2013
On 12/3/13, Richard Mace <richard.mace at gmail.com> wrote:
> Hi,
> Is it possible to have a Pick List within the ValueList editor or is it
> just strings?
>From my ValEdit test suite:
procedure TForm1.Button6Click(Sender: TObject);
begin
ValEd.Strings.Clear;
Valed.Strings.Add('MyYesNoRO=No');
with ValEd.ItemProps['MyYesNoRO'] do
begin
KeyDesc := 'MyYesNo: PickList';
EditStyle := esPickList;
ReadOnly := True;
PickList.Add('Yes');
PickList.Add('No');
end;
....
Bart
More information about the Lazarus
mailing list