Always position value lable left of a vertical slider

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2009-11-14 16:34:56 +00:00
parent 7de8349472
commit 3312ee03a7

View File

@@ -357,10 +357,13 @@ bool wxSlider::Create(wxWindow *parent,
m_minLabel = NULL;
}
gtk_scale_set_draw_value(GTK_SCALE (m_scale), (style & wxSL_VALUE_LABEL) != 0);
if (style & wxSL_VALUE_LABEL)
{
gtk_scale_set_draw_value(GTK_SCALE (m_scale), TRUE );
if ((style & wxSL_MIN_MAX_LABELS) && (style & wxSL_VERTICAL))
gtk_scale_set_value_pos( GTK_SCALE(m_scale), GTK_POS_LEFT );
if (style & wxSL_VERTICAL)
gtk_scale_set_value_pos( GTK_SCALE(m_scale), GTK_POS_LEFT );
}
// Keep full precision in position value
gtk_scale_set_digits(GTK_SCALE (m_scale), -1);