]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textctrl.h
added a wxTreeEvent ctor taking the associated wxTreeCtrl and optional wxTreeItemId...
[wxWidgets.git] / include / wx / textctrl.h
index 5a0d79ce658b5fb9b19b0f352f0f2a0f49f3056a..4afe415c68b0d3af2212465130f58bb63d2c2c4a 100644 (file)
@@ -331,6 +331,13 @@ public:
     // sets/clears the dirty flag
     virtual void MarkDirty() = 0;
     virtual void DiscardEdits() = 0;
+    void SetModified(bool modified)
+    {
+        if ( modified )
+            MarkDirty();
+        else
+            DiscardEdits();
+    }
 
     // set the max number of characters which may be entered in a single line
     // text control