Really add wxGA_PROGRESS support to wxGauge in wxOSX

Finish the work started in 11a5b83e2c by moving
more wxAppProgressIndicator-related parts of wxMSW wxGauge implementation into
the base class and reusing them from the wxOSX version.

Also remove MSW-specific test for wxUSE_TASKBARBUTTON from the widgets sample
which prevented this style from being taken into account at all under Mac.

See #16638.
This commit is contained in:
Vadim Zeitlin
2016-02-01 03:03:53 +01:00
parent f5187859cc
commit ddae98fc35
4 changed files with 24 additions and 19 deletions

View File

@@ -293,10 +293,8 @@ void GaugeWidgetsPage::CreateGauge()
if ( m_chkSmooth->GetValue() )
flags |= wxGA_SMOOTH;
#if wxUSE_TASKBARBUTTON
if ( m_chkProgress->GetValue() )
flags |= wxGA_PROGRESS;
#endif
int val = 0;
if ( m_gauge )