Logo Search packages:      
Sourcecode: saga version File versions  Download package

virtual wxSize wxPGProperty::OnMeasureImage ( int  item = -1  )  const [virtual, inherited]

Returns size of the custom painted image in front of property. This method must be overridden to return non-default value if OnCustomPaint is to be called.

item Normally -1, but can be an index to the property's list of items.
  • Default behavior is to return wxSize(0,0), which means no image.
  • Default image width or height is indicated with dimension -1.
  • You can also return wxPG_DEFAULT_IMAGE_SIZE which equals wxSize(-1, -1).

Referenced by wxPGProperty::AddChild(), and wxPropertyGrid::GetImageSize().

Generated by  Doxygen 1.6.0   Back to index