wxPropertyGrid Property Attribute Identifiers

wxPropertyGrid::SetPropertyAttribute accepts one of these as attrid argument when used with one of the built-in property classes. More...

Defines

#define wxPG_BOOL_USE_CHECKBOX   64
#define wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING   65
#define wxPG_COLOUR_ALLOW_CUSTOM   151
#define wxPG_CUSTOM_PAINT_CALLBACK   131
#define wxPG_CUSTOM_PRIVATE_CHILDREN   132
#define wxPG_DATE_FORMAT   76
#define wxPG_DATE_PICKER_STYLE   77
#define wxPG_DIR_DIALOG_MESSAGE   75
#define wxPG_FILE_DIALOG_TITLE   74
#define wxPG_FILE_INITIAL_PATH   73
#define wxPG_FILE_SHOW_FULL_PATH   71
#define wxPG_FILE_SHOW_RELATIVE_PATH   72
#define wxPG_FILE_WILDCARD   70
#define wxPG_FLOAT_PRECISION   66
#define wxPG_STRING_PASSWORD   67
#define wxPG_UINT_BASE   68
#define wxPG_UINT_PREFIX   69
#define wxPG_USER_ATTRIBUTE   192

Detailed Description

wxPropertyGrid::SetPropertyAttribute accepts one of these as attrid argument when used with one of the built-in property classes.


Define Documentation

#define wxPG_BOOL_USE_CHECKBOX   64

wxBoolProperty specific, int, default 0.

When 1 sets bool property to use checkbox instead of choice.

#define wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING   65

wxBoolProperty specific, int, default 0.

When 1 sets bool property value to cycle on double click (instead of showing the popup listbox).

#define wxPG_COLOUR_ALLOW_CUSTOM   151

wxColourProperty and its kind, int, default 1.

Setting this attribute to 0 hides custom colour from property's list of choices.

#define wxPG_CUSTOM_PAINT_CALLBACK   131

wxCustomProperty specific, void*.

Sets callback function (of type wxPGPaintCallback) that is called whenever image in front of property needs to be repainted. This attribute takes precedence over bitmap set with wxPG_CUSTOM_IMAGE, and it is only proper way to draw images to wxCustomProperty's drop down choices list.

Remarks:
Callback must handle measure calls (i.e. when rect.x < 0, set paintdata.m_drawnHeight to height of item in question).

#define wxPG_CUSTOM_PRIVATE_CHILDREN   132

wxCustomProperty specific, int, default 0.

Setting to 1 makes children private, similar to other properties with children.

Remarks:
  • Children must be added when this attribute has value 0. Otherwise there will be an assertion failure.
  • Changed event occurs on the parent only.

#define wxPG_DATE_FORMAT   76

Sets displayed date format for wxDateProperty.

#define wxPG_DATE_PICKER_STYLE   77

Sets wxDatePickerCtrl window style used with wxDateProperty.

Default is wxDP_DEFAULT | wxDP_SHOWCENTURY.

#define wxPG_DIR_DIALOG_MESSAGE   75

Specific to wxDirProperty, wxString, default is empty.

Sets a specific message for the dir dialog.

#define wxPG_FILE_DIALOG_TITLE   74

Specific to wxFileProperty and derivatives, wxString, default is empty.

Sets a specific title for the dir dialog.

#define wxPG_FILE_INITIAL_PATH   73

Specific to wxFileProperty and derived properties, wxString, default is empty.

Sets the initial path of where to look for files.

#define wxPG_FILE_SHOW_FULL_PATH   71

wxFileProperty/wxImageFileProperty specific, int, default 1.

When 0, only the file name is shown (i.e. drive and directory are hidden).

#define wxPG_FILE_SHOW_RELATIVE_PATH   72

Specific to wxFileProperty and derived properties, wxString, default empty.

If set, then the filename is shown relative to the given path string.

#define wxPG_FILE_WILDCARD   70

wxFileProperty/wxImageFileProperty specific, wxChar*, default is detected/varies.

Sets the wildcard used in the triggered wxFileDialog. Format is the same.

#define wxPG_FLOAT_PRECISION   66

wxFloatProperty (and similar) specific, int, default -1.

Sets the (max) precision used when floating point value is rendered as text. The default -1 means infinite precision.

#define wxPG_STRING_PASSWORD   67

The text will be echoed as asterisks (wxTE_PASSWORD will be passed to textctrl etc).

#define wxPG_UINT_BASE   68

Define base used by a wxUIntProperty.

Valid constants are wxPG_BASE_OCT, wxPG_BASE_DEC, wxPG_BASE_HEX and wxPG_BASE_HEXL (lowercase characters).

#define wxPG_UINT_PREFIX   69

Define prefix rendered to wxUIntProperty.

Accepted constants wxPG_PREFIX_NONE, wxPG_PREFIX_0x, and wxPG_PREFIX_DOLLAR_SIGN. Note: Only wxPG_PREFIX_NONE works with Decimal and Octal numbers.

#define wxPG_USER_ATTRIBUTE   192

First attribute id that is guaranteed not to be used built-in properties.


Generated on Sun Mar 11 11:38:07 2007 for wxPropertyGrid by  doxygen 1.5.1-p1