Board index » cppbuilder » RichEdit Text Bolding
Richard
![]() CBuilder Developer |
RichEdit Text Bolding2007-12-30 05:02:57 AM cppbuilder75 Is it that I am helplessly stupid or is it that I attempt to do odd tasks. In a RichEdit, I want to change the color and bold the following text using: RichEdit->SelAttributes->Style = RichEdit->SelAttributes->Style << fsBold; "^" (including the two double quotes) The font name that I am using is Courier New (this fact seems to be of significance). The color is always changeable (no problem). For font size = 10, I cannot bold the text. For other font sizes (12, 14, etc.), I CAN change to bold. Now, if I change the "^" to "Z", for instance, the bolding works for any font size. On a slightly different topic, while poking around trying to solve the above problem, I became aware that I am unable to modify either the font name or font size at run time. Statements like: RichEdit->Font->Name = "Courier New"; RichEdit->Font->Height = -24; RichEdit->Update(); don't seem to take effect. I followed a little of the de{*word*81} CPU control flow, and it would appear that logical system functions are being called. Richard |