wxPropertyGrid
|
Has dropdown list of wxWidgets system colours. More...
#include <advprops.h>
Public Member Functions | |
virtual wxString | ColourToString (const wxColour &col, int index) const |
Override in derived class to customize how colours are printed as strings. | |
virtual wxColour | GetColour (int index) const |
Default is to use wxSystemSettings::GetColour(index). | |
virtual int | GetCustomColourIndex () const |
Returns index of entry that triggers colour picker dialog (default is last). | |
wxColourPropertyValue | GetVal (const wxVariant *pVariant=NULL) const |
virtual bool | IntToValue (wxVariant &variant, int number, int argFlags=0) const |
Converts 'number' (including choice selection) into proper value 'variant'. | |
virtual void | OnSetValue () |
This virtual function is called after m_value has been set. | |
bool | QueryColourFromUser (wxVariant &variant) const |
wxSystemColourProperty (const wxString &label=wxPG_LABEL, const wxString &name=wxPG_LABEL, const wxColourPropertyValue &value=wxColourPropertyValue()) | |
Protected Member Functions | |
int | ColToInd (const wxColour &colour) const |
virtual wxVariant | DoTranslateVal (wxColourPropertyValue &v) const |
void | Init (int type, const wxColour &colour) |
wxVariant | TranslateVal (wxColourPropertyValue &v) const |
wxVariant | TranslateVal (int type, const wxColour &colour) const |
wxSystemColourProperty (const wxString &label, const wxString &name, const wxChar **labels, const long *values, wxPGChoices *choicesCache, const wxColourPropertyValue &value) | |
wxSystemColourProperty (const wxString &label, const wxString &name, const wxChar **labels, const long *values, wxPGChoices *choicesCache, const wxColour &value) |
Has dropdown list of wxWidgets system colours.
Value used is of wxColourPropertyValue type.
virtual wxColour wxSystemColourProperty::GetColour | ( | int | index | ) | const [virtual] |
Default is to use wxSystemSettings::GetColour(index).
Override to use custom colour tables etc.
virtual bool wxSystemColourProperty::IntToValue | ( | wxVariant & | value, |
int | number, | ||
int | argFlags = 0 |
||
) | const [virtual] |
Converts 'number' (including choice selection) into proper value 'variant'.
Returns true if new (different than m_value) value could be interpreted from the integer.
argFlags | If wxPG_FULL_VALUE is set, returns complete, storable value instead of displayable |
Reimplemented from wxBaseEnumProperty.
virtual void wxSystemColourProperty::OnSetValue | ( | ) | [virtual] |
This virtual function is called after m_value has been set.
Reimplemented from wxBaseEnumProperty.