#include <props.h>
Public Member Functions | |
virtual wxString | GetValueAsString (int argFlags=0) const |
virtual bool | OnButtonClick (wxPropertyGrid *propgrid, wxString &value) |
virtual bool | OnEvent (wxPropertyGrid *propgrid, wxWindow *primary, wxEvent &event) |
virtual bool | StringToValue (wxVariant &variant, const wxString &text, int argFlags=0) const |
wxLongStringProperty (const wxString &label=wxPG_LABEL, const wxString &name=wxPG_LABEL, const wxString &value=wxEmptyString) | |
Static Public Member Functions | |
static bool | DisplayEditorDialog (wxPGProperty *prop, wxPropertyGrid *propGrid, wxString &value) |
virtual wxString wxLongStringProperty::GetValueAsString | ( | int | argFlags = 0 |
) | const [virtual] |
Returns text representation of property's value.
argFlags | If wxPG_FULL_VALUE is set, returns complete, storable string value instead of displayable. If wxPG_EDITABLE_VALUE is set, returns string value that must be editable in textctrl. If wxPG_COMPOSITE_FRAGMENT is set, returns text that is appropriate to display as a part of composite property string value. |
Reimplemented from wxPGProperty.
virtual bool wxLongStringProperty::OnEvent | ( | wxPropertyGrid * | propgrid, | |
wxWindow * | wnd_primary, | |||
wxEvent & | event | |||
) | [virtual] |
Events received by editor widgets are processed here.
Note that editor class usually processes most events. Some, such as button press events of TextCtrlAndButton class, should be handled here. Also, if custom handling for regular events is desired, then that can also be done (for example, wxSystemColourProperty custom handles wxEVT_COMMAND_CHOICE_SELECTED).
If the event causes value to be changed, wxPropertyGrid::ValueChangeInEvent(value) should be used.
event | Associated wxEvent. |
Should | return true if any changes in value should be reported. |
Reimplemented from wxPGProperty.
virtual bool wxLongStringProperty::StringToValue | ( | wxVariant & | variant, | |
const wxString & | text, | |||
int | argFlags = 0 | |||
) | const [virtual] |
Converts 'text' into proper value 'variant'.
Returns true if new (different than m_value) value could be interpreted from the text.
argFlags | If wxPG_FULL_VALUE is set, returns complete, storable value instead of displayable one (they may be different). If wxPG_COMPOSITE_FRAGMENT is set, text is interpreted as a part of composite property string value (as generated by GetValueAsString() called with this same flag). |
Reimplemented from wxPGProperty.