Hello Dev,
I want to change font colour in wx.RichTextCrtl, but I find the way it is used in wxDemo is complicated with no code to explain. Is there simple way to do it? If there is no other way, can someone explain the way it is done in demo TALKally (with comments)?
Thanks alot!
Steve
Stefano Mtangoo
455
Senior Poster
Recommended Answers
Jump to PostThis didn't make any sense?
self.rtc.BeginTextColour((255, 0, 0)) self.rtc.WriteText("colour, like this red bit.") self.rtc.EndTextColour()
It looks like you have to 'build' the contents of the Rich Text Control as you go. When you get to text you want in another (non-default) color, you call BeginTextColour with a …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.