From: Vadim Zeitlin Date: Wed, 31 Jan 2001 12:22:04 +0000 (+0000) Subject: support for wxGA_VERTICAL in wxGauge X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/61f04363dbdd0dc5ddd9f2e6cdfaca8a94fab284 support for wxGA_VERTICAL in wxGauge git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/gauge.cpp b/src/gtk/gauge.cpp index 6cfcc74b0e..b85ec70964 100644 --- a/src/gtk/gauge.cpp +++ b/src/gtk/gauge.cpp @@ -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 ); diff --git a/src/gtk1/gauge.cpp b/src/gtk1/gauge.cpp index 6cfcc74b0e..b85ec70964 100644 --- a/src/gtk1/gauge.cpp +++ b/src/gtk1/gauge.cpp @@ -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 );