Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-12

Pick List as a Value List item

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bart
to Richard Mace: Is it possible to have a Pick List within the ValueList editor or is it just strings?…
Richard Mace wrote 5 lines
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

Reply by email

Richard Mace
to Bart

Excellent, thank you.

Richard

Bart wrote 30 lines
On 12/3/13, Richard Mace 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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131205/286dafe3/attachment.html>

Reply by email