Just a guess, but I would try creating a TextAttrEx object, tell it to use a wx.NORMAL font weight, and then set that attr on the whole range of the RTC with SetStyleEx.
···
On 6/5/10 3:15 AM, Stef Mientki wrote:
hello,
I've a richttextctrl in which I frequently change the contents.
The only style attribute I'm using is bold (translating <b> tags from html).
Now I've a problem:
if the cursor is in a bold piece of text and I change the contents of
the richtextctrl (while focus is on a different widget),
and I try to replace the the content of the richtextctrl with the code below
(you can see I've tried all kinds of statement to get rid of the bold)
all the new text gets bold.
Anyway to prevent that ?
I've a richttextctrl in which I frequently change the contents.
The only style attribute I'm using is bold (translating <b> tags from html).
Now I've a problem:
if the cursor is in a bold piece of text and I change the contents of
the richtextctrl (while focus is on a different widget),
and I try to replace the the content of the richtextctrl with the code below
(you can see I've tried all kinds of statement to get rid of the bold)
all the new text gets bold.
Anyway to prevent that ?
Just a guess, but I would try creating a TextAttrEx object, tell it to use a wx.NORMAL font
weight, and then set that attr on the whole range of the RTC with SetStyleEx.