Add wxRendererNative::DrawGauge() method.
Add the method with the native implementations for MSW and OS X and a generic version fallback. Closes #16406. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -267,6 +267,15 @@ private:
|
||||
|
||||
y += lineHeight + rBtn.height;
|
||||
#endif // wxHAS_DRAW_TITLE_BAR_BITMAP
|
||||
|
||||
const wxCoord heightGauge = 24;
|
||||
const wxCoord widthGauge = 180;
|
||||
|
||||
dc.DrawText("DrawGauge()", x1, y);
|
||||
wxRendererNative::GetDefault().DrawGauge(this, dc,
|
||||
wxRect(x2, y, widthGauge, heightGauge), 25, 100, m_flags);
|
||||
|
||||
y += lineHeight + heightGauge;
|
||||
}
|
||||
|
||||
int m_flags;
|
||||
|
Reference in New Issue
Block a user