projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finished wxWindow for MGL
[wxWidgets.git]
/
include
/
wx
/
msw
/
textctrl.h
diff --git
a/include/wx/msw/textctrl.h
b/include/wx/msw/textctrl.h
index f233ee08f6669df15ed56cfad40d9a6861fb47af..d2d7315e4ea90a7b7753974ef32f5fed271cee51 100644
(file)
--- a/
include/wx/msw/textctrl.h
+++ b/
include/wx/msw/textctrl.h
@@
-1,5
+1,5
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: textctrl.h
+// Name:
wx/msw/
textctrl.h
// Purpose: wxTextCtrl class
// Author: Julian Smart
// Modified by:
// Purpose: wxTextCtrl class
// Author: Julian Smart
// Modified by:
@@
-72,11
+72,19
@@
public:
// clears the dirty flag
virtual void DiscardEdits();
// clears the dirty flag
virtual void DiscardEdits();
+ virtual void SetMaxLength(unsigned long len);
+
// writing text inserts it at the current position, appending always
// inserts it at the end
virtual void WriteText(const wxString& text);
virtual void AppendText(const wxString& text);
// writing text inserts it at the current position, appending always
// inserts it at the end
virtual void WriteText(const wxString& text);
virtual void AppendText(const wxString& text);
+#if wxUSE_RICHEDIT
+ // apply text attribute to the range of text (only works with richedit
+ // controls)
+ virtual bool SetStyle(long start, long end, const wxTextAttr& style);
+#endif // wxUSE_RICHEDIT
+
// translate between the position (which is just an index in the text ctrl
// considering all its contents as a single strings) and (x, y) coordinates
// which represent column and line.
// translate between the position (which is just an index in the text ctrl
// considering all its contents as a single strings) and (x, y) coordinates
// which represent column and line.
@@
-125,6
+133,8
@@
public:
#endif
#if wxUSE_RICHEDIT
#endif
#if wxUSE_RICHEDIT
+ virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
+
bool IsRich() const { return m_isRich; }
void SetRichEdit(bool isRich) { m_isRich = isRich; }
bool IsRich() const { return m_isRich; }
void SetRichEdit(bool isRich) { m_isRich = isRich; }
@@
-156,16
+166,21
@@
public:
void OnUpdateRedo(wxUpdateUIEvent& event);
protected:
void OnUpdateRedo(wxUpdateUIEvent& event);
protected:
-#if wxUSE_RICHEDIT
- bool m_isRich; // Are we using rich text edit to implement this?
-#endif
-
// call this to increase the size limit (will do nothing if the current
// limit is big enough)
// call this to increase the size limit (will do nothing if the current
// limit is big enough)
- void AdjustSpaceLimit();
+ //
+ // returns true if we increased the limit to allow entering more text,
+ // false if we hit the limit set by SetMaxLength() and so didn't change it
+ bool AdjustSpaceLimit();
+ // override some base class virtuals
+ virtual bool MSWShouldPreProcessMessage(WXMSG* pMsg);
virtual wxSize DoGetBestSize() const;
virtual wxSize DoGetBestSize() const;
+#if wxUSE_RICHEDIT
+ bool m_isRich; // Are we using rich text edit to implement this?
+#endif
+
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxTextCtrl)
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxTextCtrl)