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
// --------------------------
// 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();
DECLARE_DYNAMIC_CLASS(wxTextCtrl)
wxMenu* m_privateContextMenu;
+
+ bool m_isNativeCaretShown;
};
#endif