]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/carbon/textctrl.h
Made MSW wxSpinCtrl emit UPDATE event when validating
[wxWidgets.git] / include / wx / mac / carbon / textctrl.h
index a4a6dffdb27946052d2f9d7f572ca125c73f781a..69615247a208715ee02b279a167771aaaf8c8f0c 100644 (file)
@@ -47,7 +47,7 @@ public:
         Create(parent, id, value, pos, size, style, validator, name);
     }
 
-    ~wxTextCtrl();
+    virtual ~wxTextCtrl();
 
     bool Create(wxWindow *parent,
         wxWindowID id,
@@ -83,6 +83,7 @@ public:
 
     // load the controls contents from the file
     virtual bool LoadFile(const wxString& file);
+    virtual bool LoadFile(const wxString& file, int WXUNUSED(fileType)) { return LoadFile(file); }
 
     // sets/clears the dirty flag
     virtual void MarkDirty();
@@ -188,7 +189,7 @@ public:
 
     wxMacTextControl * GetPeer() const
     { return (wxMacTextControl*) m_peer; }
-
+    
 protected:
     // common part of all ctors
     void Init();
@@ -202,6 +203,18 @@ protected:
 
   // need to make this public because of the current implementation via callbacks
     unsigned long  m_maxLength;
+    
+    bool GetTriggerOnSetValue() const 
+    { 
+        return m_triggerOnSetValue; 
+    }
+    
+    void SetTriggerOnSetValue(bool trigger) 
+    { 
+        m_triggerOnSetValue = trigger; 
+    }
+    
+    bool m_triggerOnSetValue ;
 
 private :
   wxMenu  *m_privateContextMenu;