 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Wiljo Guest
|
Posted: Mon Dec 19, 2005 12:00 pm Post subject: Re: File listing |
|
|
Bono wrote:
| Quote: | Dear all,
I'm trying to show all files (with a certain exstension) contained in a
directory onto a list in my form.
Is there any (CLX, multiplatform) control like a "DirListBox" that shows all
files in a dir??
If not, how can I take a decision?
Thanks a lot!!
How about TFileListBox of the Win3.1 pallet. |
Cheers,
Wiljo.
|
|
| Back to top |
|
 |
Wiljo Guest
|
Posted: Mon Dec 19, 2005 1:50 pm Post subject: Re: File listing |
|
|
Bono wrote:
| Quote: | Win3.1?
Is it in CLX? Multiplatform?
How about TFileListBox of the Win3.1 pallet.
Cheers,
Wiljo.
No, it is not! |
But you could also write your own TListBox interface (and maybe even your own
Component), using the FindFirst and FindNext functions.
When the directory changes of the TDirListBox, write an event handler that fills
a normal TListBox object, which is available in CLX, scanning the directory with
FindFirst and FindNext with the correct parameters.
I don't know of a CLX::TFileListBox component, but maybe someone else does. May
given solution here, is not that difficult though.
Cheers,
Wiljo.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|