Changes necessary to make In Place Edit work and look a lot nicer for
MSW and GTK, and hopefully make it easy to make the same tweaks for other ports. There are still some very minor anomalies (changing colors of the grid doesn't change the IPE control, etc.) but it is definitely useable now. The IPE control now gets the fore/background color of the cell. Changed how the current cell highlight is drawn so mulitple clicks in a single cell don't leave the highlight in an inconsistent state for GTK. Changed a dangerous static variable to a member variable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,7 +186,7 @@ public:
|
||||
void UpdateDimensions();
|
||||
|
||||
void SetCurrentRect (int Row, int Column, int canvasW = -1, int canvasH = -1);
|
||||
void HighlightCell (wxDC *dc);
|
||||
void HighlightCell(wxDC *dc, bool doHighlight);
|
||||
void DrawCellText();
|
||||
void SetGridClippingRegion(wxDC *dc);
|
||||
|
||||
@@ -247,6 +247,7 @@ protected:
|
||||
bool m_editable;
|
||||
bool m_editInPlace;
|
||||
bool m_inOnTextInPlace;
|
||||
bool m_inScroll;
|
||||
|
||||
int m_totalRows;
|
||||
int m_totalCols;
|
||||
@@ -283,6 +284,7 @@ protected:
|
||||
wxBrush m_labelBackgroundBrush;
|
||||
wxFont m_labelTextFont;
|
||||
wxPen m_divisionPen;
|
||||
wxPen m_highlightPen;
|
||||
wxBitmap* m_doubleBufferingBitmap;
|
||||
|
||||
// Position of Edit control
|
||||
|
Reference in New Issue
Block a user