Add wxGrid::Render() for drawing the grid to any wxDC.

In particular, this allows to print the grid contents easily.

Closes #14294.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-05-27 13:00:19 +00:00
parent b55d57aa24
commit 779e28da63
6 changed files with 571 additions and 1 deletions

View File

@@ -111,6 +111,8 @@ public:
void OnVTable( wxCommandEvent& );
void OnBugsTable( wxCommandEvent& );
void OnTabularTable( wxCommandEvent& );
void OnGridRender( wxCommandEvent& event );
void OnRenderPaint( wxPaintEvent& event );
enum
{
@@ -174,7 +176,18 @@ public:
ID_SET_HIGHLIGHT_WIDTH,
ID_SET_RO_HIGHLIGHT_WIDTH,
ID_TESTFUNC
ID_TESTFUNC,
ID_RENDER_ROW_LABEL,
ID_RENDER_COL_LABEL,
ID_RENDER_GRID_LINES,
ID_RENDER_GRID_BORDER,
ID_RENDER_SELECT_HLIGHT,
ID_RENDER_LOMETRIC,
ID_RENDER_COORDS,
ID_RENDER_ZOOM,
ID_RENDER_MARGIN,
ID_RENDER_DEFAULT_SIZE,
};
#if wxUSE_LOG
@@ -184,6 +197,8 @@ public:
// add the cells to selection when using commands from select menu?
bool m_addToSel;
wxBitmap m_gridBitmap;
DECLARE_EVENT_TABLE()
};