Property representing wxDateTime. More...
#include <advprops.h>
  
 Public Member Functions | |
| virtual bool | DoSetAttribute (const wxString &name, wxVariant &value) | 
| Special handling for attributes of this property.   | |
| long | GetDatePickerStyle () const | 
| wxDateTime | GetDateValue () const | 
| const wxString & | GetFormat () const | 
| virtual wxString | GetValueAsString (int flags=0) const | 
| Returns text representation of property's value.   | |
| virtual void | OnSetValue () | 
| This virtual function is called after m_value has been set.   | |
| void | SetDateValue (const wxDateTime &dt) | 
| void | SetFormat (const wxString &format) | 
| virtual bool | StringToValue (wxVariant &variant, const wxString &text, int argFlags=0) const | 
| Converts 'text' into proper value 'variant'.   | |
| wxDateProperty (const wxString &label=wxPG_LABEL, const wxString &name=wxPG_LABEL, const wxDateTime &value=wxDateTime()) | |
Static Protected Member Functions | |
| static wxString | DetermineDefaultDateFormat (bool showCentury) | 
Protected Attributes | |
| long | m_dpStyle | 
| wxString | m_format | 
Static Protected Attributes | |
| static wxString | ms_defaultDateFormat | 
Property representing wxDateTime.
Supported special attributes:
| virtual bool wxDateProperty::DoSetAttribute | ( | const wxString & | name, | |
| wxVariant & | value | |||
| ) |  [virtual] | 
        
Special handling for attributes of this property.
If returns false, then the attribute will be automatically stored in m_attributes.
Default implementation simply returns false.
Reimplemented from wxPGProperty.
| virtual wxString wxDateProperty::GetValueAsString | ( | int |  argFlags = 0 | 
          ) |  const [virtual] | 
        
Returns text representation of property's value.
Generally this function should not be called from the application code. Instead, call GetValueString().
| argFlags | If wxPG_FULL_VALUE is set, returns complete, storable string value instead of displayable. If wxPG_EDITABLE_VALUE is set, returns string value that must be editable in textctrl. If wxPG_COMPOSITE_FRAGMENT is set, returns text that is appropriate to display as a part of composite property string value. | 
Reimplemented from wxPGProperty.
| virtual void wxDateProperty::OnSetValue | ( | ) |  [virtual] | 
        
This virtual function is called after m_value has been set.
Reimplemented from wxPGProperty.
| virtual bool wxDateProperty::StringToValue | ( | wxVariant & | variant, | |
| const wxString & | text, | |||
| int |  argFlags = 0 | |||
| ) |  const [virtual] | 
        
Converts 'text' into proper value 'variant'.
Returns true if new (different than m_value) value could be interpreted from the text.
| argFlags | If wxPG_FULL_VALUE is set, returns complete, storable value instead of displayable one (they may be different). If wxPG_COMPOSITE_FRAGMENT is set, text is interpreted as a part of composite property string value (as generated by GetValueAsString() called with this same flag). | 
Reimplemented from wxPGProperty.
 1.6.3