wxPropertyGrid Miscellanous


Detailed Description

This section describes some miscellanous values, types and macros.


Defines

#define WX_PG_CLASSINFO(NAME)   (&NAME::ms_classInfo)
#define wxPG_COLOUR(R, G, B)   ((wxUint32)(R+(G<<8)+(B<<16)))
#define wxPG_COLOUR_BLACK   (*wxBLACK)
#define wxPG_DEFAULT_IMAGE_SIZE   wxSize(-1, -1)
#define wxPG_EMPTY_ARRAYINT   wxArrayInt()
#define wxPG_EMPTY_ARRAYSTRING   wxArrayString()
#define wxPG_INVALID_VALUE   INT_MAX
#define wxPG_LABEL   (*((wxString*)NULL))
#define wxPG_NULL_BITMAP   wxNullBitmap

Typedefs

typedef wxString wxPGCachedString
typedef void(* wxPGPaintCallback )(wxPGProperty *property, wxDC &dc, const wxRect &rect, wxPGPaintData &paintdata)
typedef bool(* wxPropertyGridCallback )(wxPropertyGrid *propGrid, wxPGProperty *property, wxWindow *ctrl, int data)


Define Documentation

#define WX_PG_CLASSINFO ( NAME   )     (&NAME::ms_classInfo)

#define wxPG_COLOUR ( R,
G,
 )     ((wxUint32)(R+(G<<8)+(B<<16)))

Convert Red, Green and Blue to a single 32-bit value.

#define wxPG_DEFAULT_IMAGE_SIZE   wxSize(-1, -1)

If property is supposed to have custom-painted image, then returning this in OnMeasureImage() will usually be enough.


Typedef Documentation

typedef void(* wxPGPaintCallback)(wxPGProperty *property, wxDC &dc, const wxRect &rect, wxPGPaintData &paintdata)

This callback function is used by atleast wxCustomProperty to facilitiate drawing items in drop down list.

Works very much like the old wxPGProperty::OnCustomPaint.

typedef bool(* wxPropertyGridCallback)(wxPropertyGrid *propGrid, wxPGProperty *property, wxWindow *ctrl, int data)

This callback function is used by atleast wxCustomProperty to facilitiate easy custom action on button press.

Parameters:
propGrid related wxPropertyGrid
property related wxPGProperty
ctrl If not NULL (for example, not selected), a wxWindow* or equivalent
data Value depends on the context.
Return values:
True if changed value of the property.


Generated on Sun Nov 2 12:30:01 2008 for wxPropertyGrid by  doxygen 1.5.5