Hi,
I need to insert strings into a TListBox with two characters that are a different color than the rest of the string.
For instance, if my string is "abcdefg", I want to add it to the ListBox with the 'abc' and 'fg' as black and the 'de' as red.
It doesn't necessarily have to be a TListBox...
2ffat,
Thanks for the help. All I had to do was an Append() to the dataset.
Here's the code for the drag and drop from a TDBListBox to the TDBGrid...
void __fastcall TForm1::lstMenMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{
if (Button == mbLeft)...
Hi,
I have a DBGrid (dbgMatch) that displays the values in a table with two fields: Name and MatchType.
When I set the table to active, the grid fills with the data, as it should.
I fill one listbox with the names and another listbox with the match types so I can use drag and drop directly...
Thanks, Totte. I checked the placement of the #pragma hdrstop. ..it was in the same relative location as your example, so I tried moving it to the top of the file. It worked like a charm. Now I am going to go to the help files and books to learn what the hdrstop pragma is!
Thanks again...
Hi,
My problem is I get the following message when I compile my code.
Cannot create pre-compiled header; write failed
The help file says that this occurs when the hard drive is full...I have 65GB available.
I am using BCB6 on a WinXP machine. I have my settings to use pre-compiled headers...
Hi,
I am trying to write some graphics to an Enhanced Metafile (.emf) format file. I am using TMetafile and TMetafileCanvas to draw and save the graphics. Here is a snippet of my code that does this:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
mfCanvas = new...
Here is the easiest way I have found to extract the extension from the filename (assuming a 3 character extension):
newFileName = fileName.SubString(0, fileName.Length()-4);
I am new to component building and would like to create one that will draw a line at the bottom of the window then scroll up a few pixels and draw another line, etc.
I think I can do this by deriving from a TScrollingWinControl, but I need a TCanvas control to draw on. Herein lies my problem...
I had to reinstall my Borland Builder 5.0. Now when I try to compile I get a dialog box asking for the path to the proide.bpi file. It is nowhere on my disk (proide.bpl is, though). Can someone tell me what this package is, where I can find it, and why it didn't install?
My LJ-4V is attached to my W2K Workstation and shared over the local network. Everything was working fine until yesterday when I tried to print from Pagemaker. When I print, the entire page is shifted a half inch to the right, clipping the text on the right side. I tried printing a document...
Hi,
I have a PageControl that I am trying to send to a printer using the PaintTo() method. My problem is the page gets printed very small (about 1.5 x 1 inch). I now have considerably less hair trying to figure a way to scale the printed page to the size of the paper. Can anyone shed some...
Does anyone know how to change the font for the Office2K Help files? Mine are very small (almost 1 pixel characters) and really hard to read. I searched (almost) everywhere for an option to change the font, but to no avail.
I'm going blind trying to read my help files (which I do a lot of lately).
Thanks GingerR,
It worked for one of the subforms but not the other. I couldn't find any difference between the two subforms that might cause this problem. I figured a workaround, though...I added the REMARKS fields to the subforms and made them invisible, then equated the Main form REMARKS...
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.