Applied wxGauge:Pulse() patch.

[ 1551409 ] Support for indeterminate mode gauges


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-09-09 13:36:54 +00:00
parent 9804c4d95c
commit fe8635a7e7
13 changed files with 219 additions and 25 deletions

View File

@@ -49,6 +49,9 @@ bool wxGauge::Create( wxWindow *parent,
GTK_PROGRESS_BOTTOM_TO_TOP );
}
// when using the gauge in indeterminate mode, we need this:
gtk_progress_bar_set_pulse_step(GTK_PROGRESS_BAR (m_widget), 0.05);
m_parent->DoAddChild( this );
PostCreation(size);
@@ -105,6 +108,11 @@ int wxGauge::GetValue() const
return m_gaugePos;
}
void wxGauge::Pulse()
{
gtk_progress_bar_pulse(GTK_PROGRESS_BAR (m_widget));
}
wxVisualAttributes wxGauge::GetDefaultAttributes() const
{
// Visible gauge colours use a different colour state