X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e00a5d3ca15eec8db3e231d79d82ff6965e3466b..b92203a8be20debe7615492c26969d17bcd7fa8d:/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