make sure that IsModified() returns false when it's called from EVT_TEXT handler invoked because of SetValue() call

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-17 00:20:20 +00:00
parent 781acf8347
commit 6964cbbac9
2 changed files with 36 additions and 15 deletions

View File

@@ -157,11 +157,19 @@ public:
virtual void OnParentEnable( bool enable ) ;
// tell the control to ignore next text changed signal
void IgnoreNextTextUpdate();
void IgnoreNextTextUpdate() { m_ignoreNextUpdate = true; }
// should we ignore the changed signal? always resets the flag
bool IgnoreTextUpdate();
// call this to indicate that the control is about to be changed
// programmatically and so m_modified flag shouldn't be set
void DontMarkDirtyOnNextChange() { m_dontMarkDirty = true; }
// should we mark the control as dirty? always resets the flag
bool MarkDirtyOnChange();
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
@@ -187,6 +195,7 @@ private:
bool m_modified:1;
bool m_ignoreNextUpdate:1;
bool m_dontMarkDirty:1;
// Our text buffer. Convenient, and holds the buffer while using
// a dummy one when m_frozenness > 0