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 

Open file, filename, FileListBox

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





PostPosted: Tue Mar 29, 2005 8:49 pm    Post subject: Open file, filename, FileListBox Reply with quote




Where is info on getting the filename from a FileListBox? And what is the syntax? And is there a good source of info on opening a text file using the FileListBox to select a file etc?

I have an old version of C++ Builder that I'm trying to use to read a simple text file and take the comma delimited numbers from the text file to make a bit-mapped file and then display a picture from the bit-mapped file.

Thanks

Back to top
Hans Galema
Guest





PostPosted: Wed Mar 30, 2005 8:21 am    Post subject: Re: Open file, filename, FileListBox Reply with quote



John wrote:
Quote:
Where is info on getting the filename from a FileListBox?

As asked before: Please wrap your lines manually.

As told before: look in the help. Use <F1>. Look for FileName.

Hans.

Back to top
Timothy H. Buchman
Guest





PostPosted: Thu Mar 31, 2005 3:42 pm    Post subject: Re: Open file, filename, FileListBox Reply with quote



Quote:
Where is info on getting the filename from a FileListBox? And what
is the syntax? And is there a good source of info on opening a text
file using the FileListBox to select a file etc?

I have an old version of C++ Builder that I'm trying to use to read
a simple text file and take the comma delimited numbers from the
text file to make a bit-mapped file and then display a picture from
the bit-mapped file.

With the understanding that you did not ask for advice, but only for a
solution, I need to observe that FileListBox is so old that it is hard
to find people with experience using it. If you had asked for a more
general solution, I would have suggested that you consider using
TOpenDialog, because it is both current, and what users from Win95 on
expect to find when they ask an app to open a file. I've never used
FileListBox, so I can't show you any code.

As Hans suggests, FileListBox is constructed of "standard" VCL parts,
so the Help will show you how to access its pieces. But it's not a
pretty picture, and you might spend much less time on it if you switch
to TOpenDialog. That's even available "visually" in the IDE, so most
of the code is "written" for you, and the [TOpenDialog] Help is much
more "direct" in telling you how to get a file name from a user's
selection.

Just a suggestion..

--
Timothy H. Buchman
========================================
City Center Theater, New York NY
mail address tbuchmanPLEASE(at sign)REMOVEcitycenterD O Torg
Search .borland message archive on http://www.tamaracka.com/search.htm


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.