font = wx.Font(10, wx.DEFAULT, wx.NORMAL, wx.BOLD, False)
editor.GetFont().GetPointSize()
editor.SetStyle(44, 52, wx.TextAttr("Green", wx.NullColour,
font))
and whe selct all and clear back to the default style and i want know
how fix this
can you help me?
Hi,
the code seems to be working for me, e.g. setting a font and colour
for a portion of text in a TextCtrl;
I'm not sure what the line
editor.GetFont().GetPointSize()
was meant for, in this form it doesn't do anything useful.
I belive, the uniform colours of the selected text (background as well
as font) are standard for this widget; (at least on windows?)
You can distinguish the colours even in selection e.g. in
StyledTextCtrl, but it has other limitations (number of styles used
...)