From a4b19428bbd276a093527fd1505fa5e61c1757c7 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 16 Dec 2002 12:34:06 +0000 Subject: [PATCH] Fixed missing checkbox alignment git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + include/wx/generic/grid.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index b11c084e1e..e711e3312e 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -181,6 +181,7 @@ All: - Improved contrib/utils/convertrc parsing (David J. Cooke) - Fixed handling of URLs and filenames in wxFileSystem +- Implemented alignment for wxGrid bool editor and renderer 2.3.4 ----- diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 9154f8970c..222b49c550 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -302,6 +302,9 @@ public: wxControl* GetControl() { return m_control; } void SetControl(wxControl* control) { m_control = control; } + wxGridCellAttr* GetCellAttr() { return m_attr; } + void SetCellAttr(wxGridCellAttr* attr) { m_attr = attr; } + // Creates the actual edit control virtual void Create(wxWindow* parent, wxWindowID id, @@ -364,6 +367,9 @@ protected: // the control we show on screen wxControl* m_control; + // a temporary pointer to the attribute being edited + wxGridCellAttr* m_attr; + // if we change the colours/font of the control from the default ones, we // must restore the default later and we save them here between calls to // Show(TRUE) and Show(FALSE)