added wxTE_BESTWRAP style (which is the default now); renamed wxTE_LINEWRAP to wxTE_CHARWRAP as this corresponds better to what it does; added tests for wxTE_*WRAP to the widgets sample (replaces patch 1156507)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-03-27 15:25:21 +00:00
parent 120678ee96
commit fb4888a650
5 changed files with 88 additions and 32 deletions

View File

@@ -669,14 +669,9 @@ bool wxTextCtrl::Create(wxWindow *parent,
style |= wxALWAYS_SHOW_SB;
}
// wxTE_WORDWRAP is 0 for now so we don't need the code below
#if 0
if ( style & wxTE_WORDWRAP )
{
// wrapping words means wrapping, hence no horz scrollbar
style &= ~wxHSCROLL;
}
#endif // 0
// wrapping style: wxTE_DONTWRAP == wxHSCROLL so if it's _not_ given,
// we won't have horizontal scrollbar automatically, no need to do
// anything
// TODO: support wxTE_NO_VSCROLL (?)