## wxPropertyFormValidator

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

See also

wxPropertyFormValidator overview

Members

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()

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.