added Show/HideNativeCaret() (patch 759924)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-19 19:01:27 +00:00
parent 974931fefa
commit e3a6a6b2bc
2 changed files with 44 additions and 0 deletions

View File

@@ -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