delphi

This is a discussion on delphi within the Windows Programming forums, part of the Platform Specific Boards category; i am really sorry that i'm writing this here, but this is really good board and i have not found ...

  1. #1
    unreg
    Guest

    delphi

    i am really sorry that i'm writing this here, but this is really good board and i have not found such for delphi questions. I have to make a project in delphi (i don't have any other choice, so i cannot use C++ ), and I should use RichEdit component. But I don;t know how to make a syntax highlighter using richedit. I can change a font for a whole line only, so for example comments in lines containing code are not highlited in proper way. how can i solve this? or should i use another component?

  2. #2
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    You can use SelStart & SelLength properties to select text. Then you can set the properties of the selected text using SelAttributes. You are not restricted to entire lines.

    TRichEdit is a little restrictive, however, I understand it's simply wrapping WinApi functionality. It may be worth finding a third party component if it won't do everything you need it to do.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    There are Delphi forums and many others at www.programmersheaven.com
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    Yeah! Clear off!

    This is a C site for C programmers. There's nothing for you here!
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  5. #5
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    adrianxw are you telling me I could have been tormenting delphi newbies all this time and didn't even know it?

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    There are also fine C and C++ forums at Programmers Heaven. People are free to use whatever boards they like/get results from. I was a member at PH before here, and still am.

    As for tormenting newbies, well, you can try, but I know the webmaster at PH, and he doesn't much like that!
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Too bad Its funny how I forgot about that site. I used to use it a lot when I was learning java...Oh how time flies.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Delphi DLL Problem, C++ hates Delphi strings
    By Cogman in forum C++ Programming
    Replies: 5
    Last Post: 09-08-2008, 07:32 PM
  2. THE END - Borland C++ Builder, Delphi, J Builder?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-28-2006, 10:23 PM
  3. Delphi Source Code
    By OldFart in forum Windows Programming
    Replies: 4
    Last Post: 06-11-2004, 06:05 PM
  4. Delphi Vs C++, a questions of why.
    By iwod in forum Tech Board
    Replies: 2
    Last Post: 01-02-2004, 12:45 AM
  5. Open Source Delphi IDE/Compilers?
    By Eric19 in forum Windows Programming
    Replies: 1
    Last Post: 08-20-2003, 11:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21