StyledTextCtrl STC_CARETSTYLE_* `` constants

15 views
Skip to first unread message

RF

unread,
May 6, 2021, 1:53:38 PM5/6/21
to wxPython-users
I'd like to change the overtype shape of the StyledTextCtrl caret. But I cannot find where there is a listing of the available STC_CARETSTYLE_* `` constants?

Thank you...

Steve Barnes

unread,
May 6, 2021, 1:59:05 PM5/6/21
to wxpytho...@googlegroups.com

In [8]: from wx import stc as s

 

In [9]: mems = dir(s)

 

In [10]: [m for m in mems if m.startswith("STC_CARETSTYLE")]

Out[10]: ['STC_CARETSTYLE_BLOCK', 'STC_CARETSTYLE_INVISIBLE', 'STC_CARETSTYLE_LINE']

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/2831f03a-4f24-4ffd-99cc-3b05c3cc9ab8n%40googlegroups.com.

RF

unread,
May 6, 2021, 2:06:39 PM5/6/21
to wxpytho...@googlegroups.com
Your code is not formatted correctly in the email reply but it looks like there are only three choices?



--
Ralph Freshour

RF

unread,
May 6, 2021, 2:11:19 PM5/6/21
to wxPython-users
I got your code to run and indeed see three choices. Thanks.

RF

unread,
May 6, 2021, 2:21:08 PM5/6/21
to wxPython-users
Hmmm...seems like I can only set the caret style for insert mode? I don't see any way to set the shape for overtype mode? Is that true or am I missing something?
Reply all
Reply to author
Forward
0 new messages