Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I increase capacity of TListbox?

55 views
Skip to first unread message

Bogdan Ribic

unread,
May 4, 2002, 6:11:02 AM5/4/02
to
Hello,

I'm sorry to repeat myself, I just wanted to ask if anyone knows a way to
do this that wuld work with standard TListBox. Or if there's some
(preferably free) component that won't limit me to 32000 lines

Rene Tschaggelar

unread,
May 4, 2002, 9:23:12 AM5/4/02
to
While the WinNT and Win2k Listboxes do not have this limitation,
you also have to ask yourself, whether you really want this many
entries. You're not going to look at them.
I know it is usefule to process a number of items by just incrementing
the index. But meanwhile there are other dynamically resizeable
components, not necessarily visual though.

Rene
--
Ing.Buero R.Tschaggelar - http://www.ibrtses.com

Peter Below (TeamB)

unread,
May 4, 2002, 9:53:11 AM5/4/02
to

Some people are so impatient <g>.

TListbox is only limited on Win9x, because it is implemented in 16 bit code
on that platform. Anyway, leaving aside the fact that such a huge list is
completely useless as a UI element (do you want to scroll through 32000 items
to find something?), there are alternatives. A Tstringlist does not have the
limit, so you can use it to hold the strings and use a TDrawGrid or a
TListview in virtual mode to display the strings.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be


Robert Cerny

unread,
May 4, 2002, 9:15:53 AM5/4/02
to
Listview in virtual mode.
See the demo that comes with delphi.

--
Robert

Bogdan Ribic wrote in message <3cd3b3df_2@dnews>...

Kevin S.

unread,
May 5, 2002, 8:27:49 AM5/5/02
to

"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.000089d...@antispam.compuserve.com...

> In article <3cd3b3df_2@dnews>, Bogdan Ribic wrote:
>Anyway, leaving aside the fact that such a huge list is
> completely useless as a UI element (do you want to scroll through 32000
items
> to find something?),

Useless? I disagree if you add a select as you type search method (an
example how to do this is even included in the Delphi help file). Then a
single component/selected data (+ maybe an associated object) is easier to
reference later in the code.

Cheers,

Kevin


Mark Williams

unread,
May 6, 2002, 4:01:32 PM5/6/02
to
Like Kevin, I would like to know how you increase the capacity beyond 32k
lines.

In some apps I am using a TLMDListbox to replace the functions of a
database. Whilst it is unlikely to happen often, I can see the odd occasion
where the Listbox may exceed 32k.

Thanks,

Mark Williams
Bogdan Ribic <n...@available.here> wrote in message news:3cd3b3df_2@dnews...

Robert Cerny

unread,
May 7, 2002, 6:56:56 AM5/7/02
to
Hate to repeat myself, but use TListview in virtual mode.
See the VirtualListview demo that comes with delphi.
TListview is not free, but is already in the box, so you already paid for it
whatever edition you bought.


--
Robert

Mark Williams wrote in message <3cd6e2a2_2@dnews>...

0 new messages