added support for wxTE_NO_VSCROLL (patch 1588605) and documented its behaviour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -45,6 +45,10 @@ doesn't show the selection when it doesn't have focus - use this style to force
|
||||
it to always show it. It doesn't do anything under other platforms.}
|
||||
\twocolitem{\windowstyle{wxHSCROLL}}{A horizontal scrollbar will be created and
|
||||
used, so that text won't be wrapped. No effect under wxGTK1.}
|
||||
\twocolitem{\windowstyle{wxTE\_NO\_VSCROLL}}{For multiline controls only:
|
||||
vertical scrollbar will never be created. This limits the amount of text which
|
||||
can be entered into the control to what can be displayed in it under MSW but
|
||||
not under GTK2. Currently not implemented for the other platforms.}
|
||||
\twocolitem{\windowstyle{wxTE\_LEFT}}{The text in the control will be left-justified (default).}
|
||||
\twocolitem{\windowstyle{wxTE\_CENTRE}}{The text in the control will be centered (currently wxMSW and wxGTK2 only).}
|
||||
\twocolitem{\windowstyle{wxTE\_RIGHT}}{The text in the control will be right-justified (currently wxMSW and wxGTK2 only).}
|
||||
|
@@ -711,7 +711,10 @@ bool wxTextCtrl::Create( wxWindow *parent,
|
||||
// create scrolled window
|
||||
m_widget = gtk_scrolled_window_new( NULL, NULL );
|
||||
gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( m_widget ),
|
||||
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC );
|
||||
GTK_POLICY_AUTOMATIC,
|
||||
style & wxTE_NO_VSCROLL
|
||||
? GTK_POLICY_NEVER
|
||||
: GTK_POLICY_AUTOMATIC );
|
||||
// for ScrollLines/Pages
|
||||
m_scrollBar[1] = (GtkRange*)((GtkScrolledWindow*)m_widget)->vscrollbar;
|
||||
|
||||
|
Reference in New Issue
Block a user