I was finally able to get this working by parsing the filename into a string as shown here
AnsiString theReportFileName;
.
parse the filename into theReportFileName
.
FileListBox1->AddItem[theReportFileName, NULL);
but there must be a better way.
Thaks Rick
Hopefully this is a simple one but for me I've already spent a few hours on it. Any hints are welcome. I'm using Borland C++ 6 Builder.
On a form I have a DirectoryListBox1 and a FileListBox1. In the FileListProperty of the DirectoryListBox I have placed the FileListBox1 name.
When I create a...
tsh73,
I was able to spend some time looking into this working piece of code. More often than not, I can get a better understanding of how a method works by seeing a working example. In the example you gave which I listed below I believe that the Canvas of Image1 will be updated from the canvas...
tsh73,
Thanks for your reply. I actually tried something like this, gave up as I headed into another direction...I think it was close to what you did but I could not get it to work. I am going to try your method later today and will get back to you.. (I'm traveling today so time is limited)...
2ffat, Thanks for the link to this very interesting site.
Still I think I should be able to save a waveform created in a paintbox to a gif, bmp or jpg file using the Borland Builder C++ library.
I actually found a simple example that creates . bmp file using the following
Graphics::TBitmap*...
I am writing a program which displays waveforms on a form. Actually I use two Paintboxes to display 8 waveforms.
The waveforms come to me via the internet from another program I wrote previously.
To display the waveforms I use a lot of Ref->Canvas->LineTo calls where Ref is the TPaintBox *...
Hi I have a ComboBox which can contain up to 10 strings. I would like to be able to bring up a dialog box when I right click one of the items in the ComboBox. I would like to list two actions in the dialog box; clear and delete.
I think the clear should be easy and so should the delete but I...
I am creating a TComboBox which will contain a historical list of the last 10 IP addresses entered by the user. At startup, I check to see if the file where I save these addresses exists. I create it if it doesn't. If it does I load the previously saved list.
char const = *ComboFNpath...
itsgsd , 2ffat,
Yes, I checked out the link 2ffat gave me for the bcbjounal site earlier today. I think I may subscribe to the publication and maybe order the CD. By the way, I appreciate all your suggestions. I've already ordered 5 books on C++ builder, but from your recommendations I've only...
itsgsd,
Again your snippets of code worked perfectly. To say the least I owe you. This would of taken me hours of trial and error hacking away to find the solution. I appreciate your help very much.
The RichEdit box is now working perfectly. I think I can figure out how to change the font etc...
itsgsd,
Again thanks so much. I was trying to figure this out for the last hour or so. So your post made my day. And it worked. So, it looks like the RichEdit box is going to work for me. I've added vertical scroll bar to it and have made it Read Only.
When I was using List Box I ran the...
I really appreciate the response I got yesterday. Thanks so much. I've been working three months on a server-client program and being new to the Borland Build C++ environment I've had to be persistent in order to get my application to work.
I have just completed a chat protion of my project...
Magnu,
I have written a server and client application that stream data (actually waveforms and data, Chat etc) I'm using the Win32 API socket routines to do this. It's really not too difficult and if you email me directly I can send you the basic connect stuff for both sides. The routines use...
James,
Thanks so much for your response. I'm going to try it but I also have found something a bit different that works.
MyListBox->ItemIndex = LineCount;
where LineCount has the index value of the last line in the List Box.
Take care
Rick Eis
After I add a line of text into a ListBox, I would like to make that line visible. That is I would like to see the last 4 lines. The user can scroll up but when a new line is added I want to insert that that line at the bottom and have it displayed as well. Can anybody please help me.
Also, I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.