Custom native wxTextCtrl
Posted: Sat Feb 21, 2015 10:23 pm
Hey there,
I'm trying to give the wxTextCrl a custom skin ( background, text color, caret color, selection color )
I went ahead and though it would be a good idea to start from scratch - so currently I have a nice buggy version of a text ctrl...
I then tried to simply overwrite wxTextCtrl and use my custom drawing code, apparently what happens is that as soon as I write something, the default version simply draws over my custom draw code
( I assume it's because of the native control and it's not possible to overwrite it then )
Does someone know what would be the way to achieve this?
Should I maybe use wxTextCtrlBase and then simply write all wxTextCtrl functions by myself?
Any hints are highly appreciated - painting seems somehow such a big thing in WX apparently
I'm trying to give the wxTextCrl a custom skin ( background, text color, caret color, selection color )
I went ahead and though it would be a good idea to start from scratch - so currently I have a nice buggy version of a text ctrl...
I then tried to simply overwrite wxTextCtrl and use my custom drawing code, apparently what happens is that as soon as I write something, the default version simply draws over my custom draw code
( I assume it's because of the native control and it's not possible to overwrite it then )
Does someone know what would be the way to achieve this?
Should I maybe use wxTextCtrlBase and then simply write all wxTextCtrl functions by myself?
Any hints are highly appreciated - painting seems somehow such a big thing in WX apparently