wxPGTextCtrlEditor Class Reference

Inheritance diagram for wxPGTextCtrlEditor:
wxPGEditor wxPGTextCtrlAndButtonEditor

List of all members.

Public Member Functions

virtual wxPGWindowList CreateControls (wxPropertyGrid *propgrid, wxPGProperty *property, const wxPoint &pos, const wxSize &sz) const
 Instantiates editor controls.
virtual bool GetValueFromControl (wxVariant &variant, wxPGProperty *property, wxWindow *ctrl) const
 Returns value from control, via parameter 'variant'.
virtual bool OnEvent (wxPropertyGrid *propgrid, wxPGProperty *property, wxWindow *primary, wxEvent &event) const
 Handles events.
virtual void OnFocus (wxPGProperty *property, wxWindow *wnd) const
 Extra processing when control gains focus.
virtual void SetControlStringValue (wxPGProperty *property, wxWindow *ctrl, const wxString &txt) const
 Sets control's value specifically from string.
virtual void SetValueToUnspecified (wxPGProperty *property, wxWindow *ctrl) const
 Sets value in control to unspecified.
virtual void UpdateControl (wxPGProperty *property, wxWindow *ctrl) const
 Loads value from property to the control.

Static Public Member Functions

static bool GetTextCtrlValueFromControl (wxVariant &variant, wxPGProperty *property, wxWindow *ctrl)
static bool OnTextCtrlEvent (wxPropertyGrid *propgrid, wxPGProperty *property, wxWindow *ctrl, wxEvent &event)

Member Function Documentation

virtual wxPGWindowList wxPGTextCtrlEditor::CreateControls ( wxPropertyGrid propgrid,
wxPGProperty property,
const wxPoint &  pos,
const wxSize &  size 
) const [virtual]

Instantiates editor controls.

Remarks:
  • Primary control shall use id wxPG_SUBID1, and secondary (button) control shall use wxPG_SUBID2.
Parameters:
propgrid wxPropertyGrid to which the property belongs (use as parent for control).
property Property for which this method is called.
pos Position, inside wxPropertyGrid, to create control(s) to.
size Initial size for control(s).

Implements wxPGEditor.

Reimplemented in wxPGTextCtrlAndButtonEditor.

virtual bool wxPGTextCtrlEditor::GetValueFromControl ( wxVariant &  variant,
wxPGProperty property,
wxWindow *  ctrl 
) const [virtual]

Returns value from control, via parameter 'variant'.

Usually ends up calling property's StringToValue or IntToValue. Returns true if value was different.

Reimplemented from wxPGEditor.

virtual bool wxPGTextCtrlEditor::OnEvent ( wxPropertyGrid propgrid,
wxPGProperty property,
wxWindow *  wnd_primary,
wxEvent &  event 
) const [virtual]

Handles events.

Returns true if value in control was modified (see wxPGProperty::OnEvent for more information).

Implements wxPGEditor.

virtual void wxPGTextCtrlEditor::OnFocus ( wxPGProperty property,
wxWindow *  wnd 
) const [virtual]

Extra processing when control gains focus.

For example, wxTextCtrl based controls should select all text.

Reimplemented from wxPGEditor.

virtual void wxPGTextCtrlEditor::SetControlStringValue ( wxPGProperty property,
wxWindow *  ctrl,
const wxString &  txt 
) const [virtual]

Sets control's value specifically from string.

Reimplemented from wxPGEditor.

virtual void wxPGTextCtrlEditor::SetValueToUnspecified ( wxPGProperty property,
wxWindow *  ctrl 
) const [virtual]

Sets value in control to unspecified.

Implements wxPGEditor.

virtual void wxPGTextCtrlEditor::UpdateControl ( wxPGProperty property,
wxWindow *  ctrl 
) const [virtual]

Loads value from property to the control.

Implements wxPGEditor.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator

Generated on 28 Jan 2012 for wxPropertyGrid by  doxygen 1.6.1