X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/974931fefa46a1ef36784e63dbf9ed787fd5d314..e3a6a6b2bc15ddda1d614dd232d37e59ad024044:/include/wx/msw/textctrl.h diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index 7c67cb23e3..76e578e49f 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -128,6 +128,11 @@ public: virtual void SetSelection(long from, long to); virtual void SetEditable(bool editable); + // Caret handling (Windows only) + + bool ShowNativeCaret(bool show = true); + bool HideNativeCaret() { return ShowNativeCaret(false); } + // Implementation from now on // -------------------------- @@ -184,6 +189,10 @@ public: // EDIT control has one already) void OnRightClick(wxMouseEvent& event); + // be sure the caret remains invisible if the user + // called HideNativeCaret() before + void OnSetFocus(wxFocusEvent& event); + protected: // common part of all ctors void Init(); @@ -245,6 +254,8 @@ private: DECLARE_DYNAMIC_CLASS(wxTextCtrl) wxMenu* m_privateContextMenu; + + bool m_isNativeCaretShown; }; #endif