You are using a wx.TextCtrl
and the link you give is for a wx.StyledTextCtrl
. These are completely different animals, and the wx.StyledTextCtrl
has a lot more functionality than the simple wx.TextCtrl
.
I don't think there's a way to set the caret color in an ordinary wx.TextCtrl
.