On Sat, 20 Jan 2007 13:29:31 +0100
Vincent Snijders <[EMAIL PROTECTED]> wrote:

> Graeme Geldenhuys schreef:
> > On 1/20/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> >> Well, we could use TTreeView. It has working BeginUpdate/EndUpdate.
> >>
> >> It needs 0.4 secs for adding 10.000
> >> top level nodes and changing each 10 times.
> >> And it needs 23 secs for adding 100.000
> >> top level nodes and changing each 10 times.
> > 
> > 
> > In that case, what about doing the same as Delphi has done.  Use the
> > Virtual Treeview for all IDE related treeviews, grids and listview.
> > To be honest I got no idea how Virtual Treeview works. I only used
> > it for some basic grids and it worked beautifully, though that was
> > under Delphi 7.

It works with records.
No access control via properties.
That's good for speed, but terrible for newbies and debugging.


> > As far as I know Virtual Treeview does work under Lazarus, allows
> > custom painting and is lightning fast. So make it part of the
> > standard Lazarus components. Then we can use it for all treeviews
> > and grids. Everybody seems to raves about Virtual Treeview.

No wonder. The VCL TTreeView is snail slow.
That's why the LCL TTreeView uses caching and optimized structures for
adding items and accessing via Item[].
OTOH VirtualTreeView has some nice features like columns.

 
> The LCL Treeview is virtual in the sense that not for every treenode
> a widget object is created, because atm the treeview is a custom
> control.

Yes.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to