 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
John Guest
|
Posted: Tue Mar 29, 2005 8:49 pm Post subject: Open file, filename, FileListBox |
|
|
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
|
Posted: Wed Mar 30, 2005 8:21 am Post subject: Re: Open file, filename, FileListBox |
|
|
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
|
Posted: Thu Mar 31, 2005 3:42 pm Post subject: Re: Open file, filename, FileListBox |
|
|
| 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 |
|
 |
|
|
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
|
|