## wxPropertyView

The wxPropertyView abstract class is the base class for views of property sheets, acting as intermediaries between properties and actual windows.

See also

wxPropertyView overview

Members

wxPropertyView::wxPropertyView
wxPropertyView::~wxPropertyView
wxPropertyView::AddRegistry
wxPropertyView::FindPropertyValidator
wxPropertyView::GetPropertySheet
wxPropertyView::GetRegistryList
wxPropertyView::OnOk
wxPropertyView::OnCancel
wxPropertyView::OnClose
wxPropertyView::OnHelp
wxPropertyView::OnPropertyChanged
wxPropertyView::OnUpdateView
wxPropertyView::SetPropertySheet
wxPropertyView::ShowView

### wxPropertyView::wxPropertyView

void wxPropertyView(long flags = wxPROP_BUTTON_DEFAULT)

Constructor.

The flags argument can be a bit list of the following:

- wxPROP_BUTTON_CLOSE
- wxPROP_BUTTON_OK
- wxPROP_BUTTON_CANCEL
- wxPROP_BUTTON_CHECK_CROSS
- wxPROP_BUTTON_HELP
- wxPROP_DYNAMIC_VALUE_FIELD
- wxPROP_PULLDOWN

### wxPropertyView::~wxPropertyView

void ~wxPropertyView()

Destructor.

### wxPropertyView::AddRegistry

void AddRegistry(wxPropertyValidatorRegistry *registry)

Adds a registry (list of property validators) the view's list of registries, which is initially empty.

### wxPropertyView::FindPropertyValidator

wxPropertyValidator * FindPropertyValidator(wxProperty *property)

Finds the property validator that is most appropriate to this property.

### wxPropertyView::GetPropertySheet

wxPropertySheet * GetPropertySheet()

Gets the property sheet for this view.

### wxPropertyView::GetRegistryList

wxList& GetRegistryList()

Returns a reference to the list of property validator registries.

### wxPropertyView::OnOk

void OnOk()

Virtual function that will be called when the OK button on the physical window is pressed (if it exists).

### wxPropertyView::OnCancel

void OnCancel()

Virtual function that will be called when the Cancel button on the physical window is pressed (if it exists).

### wxPropertyView::OnClose

bool OnClose()

Virtual function that will be called when the physical window is closed. The default implementation returns FALSE.

### wxPropertyView::OnHelp

void OnHelp()

Virtual function that will be called when the Help button on the physical window is pressed (if it exists).

### wxPropertyView::OnPropertyChanged

void OnPropertyChanged(wxProperty *property)

Virtual function called by a view or validator when a property's value changed. Validators must be written correctly for this to be called. You can override this function to respond immediately to property value changes.

### wxPropertyView::OnUpdateView

bool OnUpdateView()

Called by the viewed object to update the view. The default implementation just returns FALSE.

### wxPropertyView::SetPropertySheet

void SetPropertySheet(wxPropertySheet *sheet)

Sets the property sheet for this view.

### wxPropertyView::ShowView

void ShowView(wxPropertySheet *sheet, wxPanel *panel)

Associates this view with the given panel, and shows the view.