wxStyledTextCtrl: how to hide caret

Hi!

How do I hide the caret in a wxStyledTextCtrl without disabling user input?

···

--
Jesper Eskilson
Virtutech
http://www.virtutech.com

You could set the fg color of the caret to the background
color of the page, although I have not tried this myself,
it might work for you.

SetCaretForeground(fore)
Sets the foreground color of the caret.
The parameter fore is a wxColour object, a #RRGGBB string, or a color spec like "white". Returns None.

HTH

···

#--------------------------------
Jeff Sasmor
jeff@sasmor.com
----- Original Message -----
From: "Jesper Eskilson" <jojo@virtutech.com>
To: "wxPython-users" <wxPython-users@lists.wxwindows.org>
Sent: Wednesday, December 18, 2002 6:21 AM
Subject: [wxPython-users] wxStyledTextCtrl: how to hide caret

Hi!

How do I hide the caret in a wxStyledTextCtrl without disabling user input?

--
Jesper Eskilson
Virtutech
http://www.virtutech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

"Jeff Sasmor" <jsasmor@gte.net> writes:

You could set the fg color of the caret to the background color of the
page, although I have not tried this myself, it might work for you.

Ok, thanks.

···

--
Jesper Eskilson
Virtutech

Jesper Eskilson wrote:

Hi!

How do I hide the caret in a wxStyledTextCtrl without disabling user input?

Does SetCaretWidth(0) do it?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!