wxPropertyGrid
|
Like wxLongStringProperty, but the button triggers dir selector instead. More...
#include <props.h>
Public Member Functions | |
virtual wxValidator * | DoGetValidator () const |
Returns pointer to the wxValidator that should be used with the editor of this property (NULL for no validator). | |
virtual bool | DoSetAttribute (const wxString &name, wxVariant &value) |
Special handling for attributes of this property. | |
virtual bool | OnButtonClick (wxPropertyGrid *propGrid, wxString &value) |
wxDirProperty (const wxString &name=wxPG_LABEL, const wxString &label=wxPG_LABEL, const wxString &value=wxEmptyString) | |
Protected Attributes | |
wxString | m_dlgMessage |
Like wxLongStringProperty, but the button triggers dir selector instead.
Supported special attributes:
virtual wxValidator* wxDirProperty::DoGetValidator | ( | ) | const [virtual] |
Returns pointer to the wxValidator that should be used with the editor of this property (NULL for no validator).
Setting validator explicitly via SetPropertyValidator will override this.
In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
wxValidator* wxMyPropertyClass::DoGetValidator () const { WX_PG_DOGETVALIDATOR_ENTRY() wxMyValidator* validator = new wxMyValidator(...); ... prepare validator... WX_PG_DOGETVALIDATOR_EXIT(validator) }
Reimplemented from wxPGProperty.
virtual bool wxDirProperty::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.