Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Michael Schnell via Lazarus
On 05.01.2017 18:10, Bart via Lazarus wrote: Just implemented sorting. Nice ! (Even if I don't see a straight forward understanding of two dimensional sorting). BTW.: Looking at the code I could imagine that auto-growing when using the Cell property to write an element might be appropriate

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Lukasz Sokol via Lazarus
On 05/01/17 17:10, Bart via Lazarus wrote: > On 1/5/17, Bart wrote: > >> I constructed a TStringTable class that does all I need (and more): >> - insert, add, delete rows/cols >> - autogrow colcount (with insertrow) >> - exchange rows/cols >> - get/set rows/cols >> - property Cells[ACol, ARow]: s

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Bart via Lazarus
On 1/6/17, Lukasz Sokol via Lazarus wrote: > just having a look at the declaration, haven't skimmed through code yet, > > do you also plan to add a TStringGrid-like interface for cols and rows No, I wanted to keep it as simple as possible. Bart -- ___

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Bart via Lazarus
On 1/6/17, Michael Schnell via Lazarus wrote: > Looking at the code I could imagine that auto-growing when using the > Cell property to write an element might be appropriate. I thought bout that, but rejected it. > Read/Write form/to a file might be sensible. Here AFAIK, the fpc's > TStringList

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Lukasz Sokol via Lazarus
On 06/01/17 12:07, Bart via Lazarus wrote: > On 1/6/17, Lukasz Sokol via Lazarus wrote: >> just having a look at the declaration, haven't skimmed through code yet, >> >> do you also plan to add a TStringGrid-like interface for cols and rows > > No, I wanted to keep it as simple as possible. > >

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Bart via Lazarus
On 1/6/17, Lukasz Sokol via Lazarus wrote: > OK I understand, you don't want to depend on TStrings ? That makes no sense to me, some methods take a TStrings as parameter... Maybe you meant TStringGrid instead? I did not want my code to depend on LCL. (It does depend on LazUtils though, but that

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Lars via Lazarus
On Fri, January 6, 2017 5:40 am, Bart via Lazarus wrote: > Mind you FF is able to copy the table in plaintext format using Tabs > as a separator, which would be easy, but IE (which is the only browser > available to me on the system) cannot do so. > > Obviously my boss does not care, he does not ha

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Michael Schnell via Lazarus
On 06.01.2017 16:20, Bart via Lazarus wrote: That makes no sense to me, Instead of a two dimensional array of strings you could have use a single dimensional array of StringLists (a less symmetrical way, of course). -Michael -- ___ Lazarus mailing l

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Lukasz Sokol via Lazarus
On 06/01/17 16:46, Michael Schnell via Lazarus wrote: > On 06.01.2017 16:20, Bart via Lazarus wrote: >> That makes no sense to me, > Instead of a two dimensional array of strings you could have use a single > dimensional array of StringLists (a less symmetrical way, of course). > > -Michael Yeah

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Bart via Lazarus
On 1/6/17, Michael Schnell via Lazarus wrote: > Instead of a two dimensional array of strings you could have use a > single dimensional array of StringLists (a less symmetrical way, of > course). That was my frist try (see: http://svn.code.sf.net/p/flyingsheep/code/trunk/FarmedTools/tableemulato

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-06 Thread Bart via Lazarus
On 1/6/17, Michael Schnell via Lazarus wrote: >> Just implemented sorting. > Nice ! > (Even if I don't see a straight forward understanding of two dimensional > sorting). Imagine you wat the rows that have the largest values (this depends on the context) at the top, or likewise columns at the le