On Fri, 19 Jan 2007 13:12:03 -0600 (CST)
Jesus Reyes <[EMAIL PROTECTED]> wrote:
>
> --- Mattias Gaertner <[EMAIL PROTECTED]> escribió:
>
> > On Fri, 19 Jan 2007 09:48:10 +0200
> > "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> [...]
> > > I'm sure it can. Vincent mentioned the 'selected row in view'.
> > Maybe
> > > Mattias can mention a few others. Looking at the Messages Window
> > code
> > > - it is quite busy code to say the least. A lot happens in
> > there..
> > > :-)
> >
> > But not much about TListBox.
> > It simply needs a scrollable list of custom drawn rects with click,
> > double click, selected item, ensure selected is visible, begin
> > update,
> > end update. TStringGrid can do that.
> > Can TStringGrid handle 30.000 rows?
> > Because this is easily created by compiling with -vt and TListBox
> > can
> > not handle it fast enough.
> >
>
> I think it can do it, though, atm it's not optimized to handle very
> huge number of rows.
30.000 is huge?
Compiling with -va a medium sized project should work as well, and
gives easily ten times.
> I guess it reduces then to know if replacing the listbox with a
> stringgrid actually improves something (the less we would want is to
> do a back step) by trying with a big case, if it works but still have
> problems, I might help by building a new grid (something like dbgrid
> but not tied to db) to handle it.
>
> I think we would need a/some voluteers with very big projects to
> actually test this (I have not seen a very huge list in messages view
> btw)
ColCount=1;
Adding 10.000 rows via RowCount (is there a better method?) and
changing every time 10 times the last cell need 6 secs (all between
BeginUpdate/EndUpdate).
Adding 100.000 rows via RowCount and
changing every time 10 times the last cell: I aborted after 6 mins.
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.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives