New wxNativeRenderer method DrawGauge for native progress display style in custom controls
|Reported by:||TcT||Owned by:||VZ|
In various scenarios a wxGauge like progress display is required in another control like in wxDataViewProgressRenderer.
I've attached a patch that implements a ::DrawGauge method to wxNativeRenderer.
I've implemented the function for MSW (XP theme and legacy), OSX and generic. I've also modified wxDataViewProgressRenderer to use wxNativeRenderer::DrawGauge. A screenshot of the wxDataView sample with the patch applied is attached.
New method is modeled like the existing wxNativeRenderer methods:
virtual void DrawGauge(wxWindow* win, wxDC& dc, const wxRect& rect, int value, int max, int flags = 0) = 0;
- value current progress value
- max maximum progress value
- flags currently unused