Use native renderer to draw rectangle indicating that wxPG category property is selected.

Because on some ports native renderers require a valid reference to the windows be drawn then it is necessary to implement and use new wxPGCellRenderer::DrawCaptionSelectionRect method which passes this  additional argument.
This commit is contained in:
Artur Wieczorek
2015-08-30 19:46:34 +02:00
parent bbecebd4ba
commit c63b1604b3
2 changed files with 49 additions and 10 deletions

View File

@@ -119,9 +119,14 @@ public:
/** Paints property category selection rectangle.
*/
#if WXWIN_COMPATIBILITY_3_0
virtual void DrawCaptionSelectionRect( wxDC& dc,
int x, int y,
int w, int h ) const;
#else
virtual void DrawCaptionSelectionRect(wxWindow *win, wxDC& dc,
int x, int y, int w, int h) const;
#endif // WXWIN_COMPATIBILITY_3_0
/** Utility to draw vertically centered text.
*/