Contents Up Previous Next

wxPropertyFormValidator: wxPropertyValidator

wxPropertyFormValidator overview

The wxPropertyFormValidator class defines a base class for form validators. By overriding virtual functions, the programmer can create custom behaviour for kinds of property.

wxPropertyFormValidator::wxPropertyFormValidator
wxPropertyFormValidator::~wxPropertyFormValidator
wxPropertyFormValidator::OnCommand
wxPropertyFormValidator::OnCheckValue
wxPropertyFormValidator::OnDisplayValue
wxPropertyFormValidator::OnDoubleClick
wxPropertyFormValidator::OnRetrieveValue


wxPropertyFormValidator::wxPropertyFormValidator

void wxPropertyFormValidator(long flags = 0)

Constructor.


wxPropertyFormValidator::~wxPropertyFormValidator

void ~wxPropertyFormValidator(void)

Destructor.


wxPropertyFormValidator::OnCommand

Bool OnCommand(wxProperty *property, wxPropertyFormView *view, wxWindow *parentWindow, wxCommandEvent& event)

Called when the control corresponding to the property receives a command (if not intercepted by a callback associated with the actual control).


wxPropertyFormValidator::OnCheckValue

Bool OnCheckValue(wxProperty *property, wxPropertyFormView *view, wxWindow *parentWindow) Called when the view checks the property value. The value checked by this validator should be taken from the panel item corresponding to the property.


wxPropertyFormValidator::OnDisplayValue

Bool OnDisplayValue(wxProperty *property, wxPropertyFormView *view, wxWindow *parentWindow)

Should display the property value in the appropriate control.


wxPropertyFormValidator::OnDoubleClick

Bool OnDoubleClick(wxProperty *property, wxPropertyFormView *view, wxWindow *parentWindow)

Called when the control corresponding to the property is double clicked (listboxes only).


wxPropertyFormValidator::OnRetrieveValue

Bool OnRetrieveValue(wxProperty *property, wxPropertyFormView *view, wxWindow *parentWindow)

Should do the transfer from the property editing area to the property itself.