Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. BubbaDave

    ListBox with strings of a different color

    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...
  2. BubbaDave

    Adding a record to the database through TDBGrid

    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)...
  3. BubbaDave

    Adding a record to the database through TDBGrid

    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...
  4. BubbaDave

    Compiler Warning question

    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...
  5. BubbaDave

    Compiler Warning question

    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...
  6. BubbaDave

    How can I read the typeface name from a .ttf file

    Hi, I want to read the name of the typeface from a True Type file. Can anyone help me?
  7. BubbaDave

    BCB Linker can't find TMetafileCanvas

    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...
  8. BubbaDave

    Retrieving file name without extension

    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);
  9. BubbaDave

    Add a component as a property of another?

    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...
  10. BubbaDave

    Lost proide.bpi

    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?
  11. BubbaDave

    Laserjet 4V driver causes offset in printing

    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...
  12. BubbaDave

    Need help with printing usung PaintTo() method

    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...
  13. BubbaDave

    How do I change the fonts in Office Help?

    Oh, thank you Hasit...my eyes are uncrossed again and the headache went away! I might never have found that fix...you are a genius!
  14. BubbaDave

    How do I change the fonts in Office Help?

    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).
  15. BubbaDave

    I need to bind a text field to either of two tables

    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...
  16. BubbaDave

    I need to bind a text field to either of two tables

    Hi, I have two tables, each with a 'Remarks' field. Both tables are bound to sub-forms on my main form. Both sub-forms display multiple records. My screen space is limited, so I don't want/need to show the remarks for all the records displayed. I want to display only the remarks, in a text...
  17. BubbaDave

    DVD Player

    Cyprus, Start with the TMediaPlayer component. I think it will play DVD's. Try setting DeviceType in the Object Inspector to either 'dtAutoSelect' or 'dtDigitalVideo'. The help files on TMediaPlayer were very helpful for me. btw - if you figure out how to set the volume, let me know...
  18. BubbaDave

    How do I stretch an avi file to fill my panel?

    Thanks, it worked like charm... Now, all I have to figure out is how to change playback speed. Any ideas? Bubba
  19. BubbaDave

    Always Active application..

    I assume you don't have an exit item in your menu. You can set an action to not allow the window to close when the user tries to use the system menu Close item or Alt-F4. Put the following line in the OnClose event of your main form: Action = caNone; Then the only way to close the...
  20. BubbaDave

    How can I change the playback speed of a media file?

    This is a two part question... I am writing a simple video viewer. I am using the TMediaPlayer component to play the videos. The first question is how can I change the playback speed of the file? I would think that if I changed the frames-per-second it would play faster or slower accordingly...

Part and Inventory Search

Back
Top