Displaying a wxCaret in a wxTextCtrl control

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
franklar
Earned a small fee
Earned a small fee
Posts: 13
Joined: Thu Dec 07, 2006 11:32 am
Location: Italy

Displaying a wxCaret in a wxTextCtrl control

Post 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 ? :)
franklar
Earned a small fee
Earned a small fee
Posts: 13
Joined: Thu Dec 07, 2006 11:32 am
Location: Italy

Post by franklar »

any ideas ? :(
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

Can we have more code? A minimal working sample is always the best
Post Reply