[ 1582733 ] Support wxALWAYS_SHOW_SB in wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8d7d6deac6
commit
d228892871
@ -2319,7 +2319,17 @@ bool wxWindowGTK::Create( wxWindow *parent,
|
||||
GtkScrolledWindowClass *scroll_class = GTK_SCROLLED_WINDOW_CLASS( GTK_OBJECT_GET_CLASS(m_widget) );
|
||||
scroll_class->scrollbar_spacing = 0;
|
||||
|
||||
gtk_scrolled_window_set_policy( scrolledWindow, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC );
|
||||
if (HasFlag(wxALWAYS_SHOW_SB))
|
||||
{
|
||||
gtk_scrolled_window_set_policy( scrolledWindow, GTK_POLICY_ALWAYS, GTK_POLICY_ALWAYS );
|
||||
|
||||
scrolledWindow->hscrollbar_visible = TRUE;
|
||||
scrolledWindow->vscrollbar_visible = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_scrolled_window_set_policy( scrolledWindow, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC );
|
||||
}
|
||||
|
||||
m_scrollBar[ScrollDir_Horz] = GTK_RANGE(scrolledWindow->hscrollbar);
|
||||
m_scrollBar[ScrollDir_Vert] = GTK_RANGE(scrolledWindow->vscrollbar);
|
||||
|
Loading…
Reference in New Issue
Block a user