Allow using wxRendererNative::DrawGauge() for vertical gauges too
It was unexpected that this method could only be used for horizontal gauges, so make it work for the vertical ones if wxCONTROL_SPECIAL flag is specified. Update MSW and generic implementations and the render sample to show a vertical gauge as well.
This commit is contained in:
@@ -333,7 +333,9 @@ public:
|
||||
int flags = 0) = 0;
|
||||
#endif // wxHAS_DRAW_TITLE_BAR_BITMAP
|
||||
|
||||
// Draw a gauge with native style like a wxGauge would display
|
||||
// Draw a gauge with native style like a wxGauge would display.
|
||||
//
|
||||
// wxCONTROL_SPECIAL flag must be used for drawing vertical gauges.
|
||||
virtual void DrawGauge(wxWindow* win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
|
Reference in New Issue
Block a user