Board index » delphi » Filelistbox question

Filelistbox question

Hi to all and thanks for any replay's

I have in a filelistbox about 200 (Stock) files.
If I press a key, for example a "g" then I get the first file starting
with "g" at the bottom of the filelistbox (highlighted).

Here comes the question: how do I get this files at the top of the
filelistbox?

I did try to pass the Flbox.itemindex to Flbox.topindex.
The result was that if I pressed a "g" the first file starting with
"g" appeared at the bottom. if I pressed "g" again, it moved to the
top, and if I pressed then a "m", then highlighted file was some where
of the screen.
Regards Gery

www.zipworld.com.au~gprdata

 

Re:Filelistbox question


Gery, it occurs you could have an invisible filelistbox, poll it for a list
and sort that list in an ordinary list box anywhich way you like.

--
Regards
DSR
dsr...@bigfoot.com

Quote
"Gery Rohrig" <gprd...@zipworld.com.au> wrote in message

news:399d051a.2275425@news.zipworld.com.au...
Quote
> Hi to all and thanks for any replay's

> I have in a filelistbox about 200 (Stock) files.
> If I press a key, for example a "g" then I get the first file starting
> with "g" at the bottom of the filelistbox (highlighted).

> Here comes the question: how do I get this files at the top of the
> filelistbox?

> I did try to pass the Flbox.itemindex to Flbox.topindex.
> The result was that if I pressed a "g" the first file starting with
> "g" appeared at the bottom. if I pressed "g" again, it moved to the
> top, and if I pressed then a "m", then highlighted file was some where
> of the screen.
> Regards Gery

> www.zipworld.com.au~gprdata

Other Threads