Board index » delphi » Determine BOLD words in a TRichText
Cary T. Kellems
Delphi Developer |
Thu, 27 Sep 2001 03:00:00 GMT
|
Cary T. Kellems
Delphi Developer |
Thu, 27 Sep 2001 03:00:00 GMT
Determine BOLD words in a TRichText
I have tried for a week to determine a way to find out which words,
within a TRichEdit, have been set to bold. I have tried to use SelStart and SelLength in conjuction with SelAttributes to determine if the selected word was = fsBold but this only seemed to work for line one of the TRichEdit. Can anyone offer some direction on this? Thanks in Advance. |
Team
Delphi Developer |
Fri, 28 Sep 2001 03:00:00 GMT
Re:Determine BOLD words in a TRichTextQuote> I have tried for a week to determine a way to find out which words, unit Unit1; interface uses type var implementation {$R *.DFM} procedure TForm1.Button1Click(Sender: TObject); // we have a word, select it in the rich edit end. Note that it will find word that are bold but also can have other Peter Below (TeamB) 100113.1...@compuserve.com) |
Cary T. Kellem
Delphi Developer |
Fri, 28 Sep 2001 03:00:00 GMT
Re:Determine BOLD words in a TRichTextThanks Peter, it works great but I am now wondering why when I read each line of the RichEdit and found/selected each word that my algorithm only corrected selected the highlighed words from the 1st line of the RichEdit. Quote"Peter Below (TeamB)" wrote: |
Team
Delphi Developer |
Sun, 30 Sep 2001 03:00:00 GMT
Re:Determine BOLD words in a TRichTextQuoteIn article <3712A0D0.E497A...@pacbell.net>, Cary T. Kellems wrote: code you used so i have no idea what you did wrong, of course. Peter Below (TeamB) 100113.1...@compuserve.com) |
2. D1: Text with some bold Words
3. cursor position and bold in Word
4. Sending bold text to a word bookmark range
5. Reading word format file like bold, italic, etc
6. Bold the Font in Ms Word ...
7. How do I make one word BOLD in a TRichEdit line
8. TRichEdit: plain text, yet making certain words bold.