X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e7a6b030c35cea910af2cfd7f1b20f2518b76a5..14619f10b0bdb630206607abd0ce0319d45e095a:/samples/validate/validate.h?ds=sidebyside diff --git a/samples/validate/validate.h b/samples/validate/validate.h index dde69217e4..beb50de15d 100644 --- a/samples/validate/validate.h +++ b/samples/validate/validate.h @@ -6,7 +6,7 @@ // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/app.h" @@ -52,6 +52,9 @@ public: bool TransferDataToWindow(); wxTextCtrl *m_text; wxComboBox *m_combobox; + + wxTextCtrl *m_numericTextInt; + wxTextCtrl *m_numericTextDouble; }; class MyData @@ -62,7 +65,7 @@ public: // These data members are designed for transfer to and from // controls, via validators. For instance, a text control's // transferred value is a string: - wxString m_string; + wxString m_string, m_string2; // Listboxes may permit multiple selections, so their state // is transferred to an integer-array class. @@ -72,6 +75,10 @@ public: // the string entered in the combobox's text-edit field. wxString m_combobox_choice; + // variables handled by wxNumericTextValidator + int m_intValue; + double m_doubleValue; + bool m_checkbox_state; int m_radiobox_choice; }; @@ -103,6 +110,7 @@ enum VALIDATE_TOGGLE_BELL, VALIDATE_TEXT, + VALIDATE_TEXT2, VALIDATE_LIST, VALIDATE_CHECK, VALIDATE_COMBO,