|
-
Nov 25th, 2009, 11:51 AM
#1
[RESOLVED] RichTextBox clears formatting when changing font
Anyone else seen this behavior. I have a richtextbox with multiple colored text in it. When I change the font, the color table is removed and everything changes to the default fore color. Anyone know of a why to preserve the color table and formatting when changing the font? I know I could build the RTF manually, but I really want to avoid that if possible.
-
Nov 25th, 2009, 10:51 PM
#2
Re: RichTextBox clears formatting when changing font
If you have three sections of text, all different colours, and you want to set the font for all three sections then you have to set it for each section individually. You'll have to do some calculations to see where the boundaries are between sections with different properties. It's a pain but that's how the RTB works.
-
Dec 2nd, 2009, 10:43 AM
#3
Re: RichTextBox clears formatting when changing font
Thanks, sorry for my delayed response, I finally figured that out. It is a pain, but I got it working.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|