[Lazarus] Pick List as a Value List item
Richard Mace
richard.mace at gmail.com
Thu Dec 5 07:38:47 CET 2013
Excellent, thank you.
Richard
On 3 December 2013 18:24, Bart <bartjunk64 at gmail.com> wrote:
> 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
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20131205/286dafe3/attachment-0003.html>
More information about the Lazarus
mailing list