wxRichTextCtrl native caret now flashes, for wxMac/Core Graphics mode

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-06-17 21:10:04 +00:00
parent 209bf72273
commit a188ac2988
2 changed files with 49 additions and 10 deletions

View File

@@ -74,10 +74,14 @@
#define wxRichTextAttr wxTextAttr
#define wxTextAttrEx wxTextAttr
// Setting wxRICHTEXT_USE_OWN_CARET to 1 implements a non-flashing
// Setting wxRICHTEXT_USE_OWN_CARET to 1 implements a
// cursor reliably without using wxClientDC in case there
// are platform-specific problems with the generic caret.
#ifdef __WXMAC__
#define wxRICHTEXT_USE_OWN_CARET 1
#else
#define wxRICHTEXT_USE_OWN_CARET 0
#endif
// Switch off for binary compatibility, on for faster drawing
// Note: this seems to be buggy (overzealous use of extents) so