Page 1 of 1

Displaying a wxCaret in a wxTextCtrl control

Posted: Tue Feb 06, 2007 10:39 am
by franklar
I'd like to show a caret in a wxMemo control, like it's shown in Caret sample included in wxWidgets "Examples" folder; but that uses the caret into a wxScrolledWindow ctrl.

Code: Select all

wxCaret *caret = new wxCaret(this, 6, 10);
SetCaret(caret);
caret->SetBlinkTime(250);
caret->Move(1, 1);
caret->Show();
Nothing happens, i see just the normal editor cursor... suggestions ? :)

Posted: Sun Feb 11, 2007 9:16 pm
by franklar
any ideas ? :(

Posted: Mon Feb 12, 2007 1:17 am
by Auria
Can we have more code? A minimal working sample is always the best