BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: File listing

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
Wiljo
Guest





PostPosted: Mon Dec 19, 2005 12:00 pm    Post subject: Re: File listing Reply with quote



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





PostPosted: Mon Dec 19, 2005 1:50 pm    Post subject: Re: File listing Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.