wx.GridCtrl.Extended.Renderers.Standard3DRenderer Class Reference

Inheritance diagram for wx.GridCtrl.Extended.Renderers.Standard3DRenderer:

wx.GridCtrl.Extended.Renderers.Renderer

List of all members.

Public Member Functions

void Draw (CellAttr attr, DC dc, Rectangle rect, object dataObject, PresentationMode mode)
Size GetBestSize (CellAttr attr, DC dc, object dataObject)
Rectangle GetErrorHandleHitregion (CellAttr attr, DC dc, Rectangle rect, object dataObject, PresentationMode mode)
 Standard3DRenderer ()

Properties

Border BorderlineBetweenCells [get]


Detailed Description

This renderer will display strings as labels of a button using the ColourSet3D colour set of the cell attribute (providing colours for shadow and highlight). Unselected cells will be display like a raised button. Selected cells will be displayed like a pressed button.

This is the standard renderer for labels.


Constructor & Destructor Documentation

wx.GridCtrl.Extended.Renderers.Standard3DRenderer.Standard3DRenderer (  ) 


Member Function Documentation

void wx.GridCtrl.Extended.Renderers.Standard3DRenderer.Draw ( CellAttr  attr,
DC  dc,
Rectangle  rect,
object  dataObject,
PresentationMode  mode 
)

Implementations of this method draw a cell of an extended grid containing the provided data within the specified rectangle.

Parameters:
attr The attributes that shall be used to display the cell.
dc The graphics device context that shall be used for drawing.
rect The rectangle that shall be used to render the cell. This might be smaller than the best size.
dataObject The data object that shall be displayed.
mode Specifies the presentation mode, e.g. whether this cell is selected or not.

Implements wx.GridCtrl.Extended.Renderers.Renderer.

Size wx.GridCtrl.Extended.Renderers.Standard3DRenderer.GetBestSize ( CellAttr  attr,
DC  dc,
object  dataObject 
)

Computes and returns the size that is desired to render the given object using the specified cell attributes. The grid may ask to draw the cell into a smaller rectangle but usually the grid will turn on scrolling to provide at least this size for drawing.

Parameters:
attr The attributes that shall be used to render the object.
dataObject The data object that shall be rendered.
dc The graphics device context that shall be used for drawing.
Returns:
Returns the smallest size that ensures with Draw() a full display of the cell data.

Implements wx.GridCtrl.Extended.Renderers.Renderer.

Rectangle wx.GridCtrl.Extended.Renderers.Standard3DRenderer.GetErrorHandleHitregion ( CellAttr  attr,
DC  dc,
Rectangle  rect,
object  dataObject,
PresentationMode  mode 
)

Assume, that Draw() rendered a cell using the provided attributes on the provided device context presenting the provided data object. This method shall return the smallest rectangle containing the error handle. This is required for hit tests - e.g. to trigger the display of a tool tip presentign an error message. the result must, of course, be contained in argument rect.

Parameters:
attr The attributes that shall be used to render the object.
rect The rectangle that shall be used to render the cell. This might be smaller than the best size.
dataObject The data object that shall be rendered.
mode Specifies the presentation mode, e.g. whether this cell is selected or not.
dc The graphics device context that shall be used for drawing.
Returns:
The smallest rectangle containing the error handle.

Implements wx.GridCtrl.Extended.Renderers.Renderer.


Property Documentation

Border wx.GridCtrl.Extended.Renderers.Standard3DRenderer.BorderlineBetweenCells [get]

This renderer draws the border between cells on his own. In fact, a border is not required to separate cells. The highlight and shadow effects outline the cell.

Implements wx.GridCtrl.Extended.Renderers.Renderer.


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads