[Lazarus] TValueListEditor example

2013-12-15 Thread Richard Mace
Hi All, Please could someone give me an example of how to programmatically add column and then items into a TValueListEditor? Thanks Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/lis

Re: [Lazarus] TValueListEditor example

2013-12-15 Thread Bart
Hi, > Please could someone give me an example of how to programmatically add column > and then > items into a TValueListEditor? You cannot (maybe you can, but you really should NOT) add colums to TValueListEditor. It will always have exactly 2 colums by design. Adding items isn't that hard. Th

Re: [Lazarus] TValueListEditor example

2013-12-15 Thread Richard Mace
Bart, Many thanks for your reply, it's starting to make sense now :) It is possible to make the "key" column read only? Richard On 15 December 2013 14:59, Bart wrote: > Hi, > > > Please could someone give me an example of how to programmatically add > column and then > > items into a TValueLis

Re: [Lazarus] TValueListEditor example

2013-12-15 Thread Bart
On 12/15/13, Richard Mace wrote: > It is possible to make the "key" column read only? Look at KeyOptions property. If you exclude KeyEdit from it, the Key column will not be editable by the user. You can set it in OI or by code: ValEdit1.KeyOptions := ValEdit1.KeyOptions - [KeyEdit]; Bart --

Re: [Lazarus] TValueListEditor example

2013-12-15 Thread Richard Mace
Hi Bart, Many thanks for your reply. On 15 December 2013 22:51, Bart wrote: > > > It is possible to make the "key" column read only? > > Look at KeyOptions property. > If you exclude KeyEdit from it, the Key column will not be editable by the > user. > I've done that, but it is still editable?

Re: [Lazarus] TValueListEditor example

2013-12-17 Thread Richard Mace
Hi Bart, Yes, all working in Trunk Thanks for all of your hard work. Richard > >> If you exclude KeyEdit from it, the Key column will not be editable by > > > I've done that, but it is still editable? > > Works for me in trunk. > > I have attached a test suite I use for development of ValEdit.

Re: [Lazarus] TValueListEditor example

2013-12-17 Thread Bart
On 12/17/13, Richard Mace wrote: > Hi Bart, > Yes, all working in Trunk Good to hear. > Thanks for all of your hard work. Glad to be of help. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/