support for wxGA_VERTICAL in wxGauge

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-01-31 12:22:04 +00:00
parent 402e2f7cf8
commit 61f04363db
2 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,8 @@ bool wxGauge::Create( wxWindow *parent, wxWindowID id, int range,
m_useProgressBar = TRUE;
m_widget = gtk_progress_bar_new();
if( style & wxGA_VERTICAL)
gtk_progress_bar_set_orientation( GTK_PROGRESS_BAR(m_widget) , GTK_PROGRESS_BOTTOM_TO_TOP );
m_parent->DoAddChild( this );

View File

@ -42,6 +42,8 @@ bool wxGauge::Create( wxWindow *parent, wxWindowID id, int range,
m_useProgressBar = TRUE;
m_widget = gtk_progress_bar_new();
if( style & wxGA_VERTICAL)
gtk_progress_bar_set_orientation( GTK_PROGRESS_BAR(m_widget) , GTK_PROGRESS_BOTTOM_TO_TOP );
m_parent->DoAddChild( this );