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:
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user