%rename(TE_AUTO_URL) wxTE_AUTO_URL;
%rename(TE_NOHIDESEL) wxTE_NOHIDESEL;
%rename(TE_DONTWRAP) wxTE_DONTWRAP;
-%rename(TE_LINEWRAP) wxTE_LINEWRAP;
+%rename(TE_CHARWRAP) wxTE_CHARWRAP;
%rename(TE_WORDWRAP) wxTE_WORDWRAP;
+%rename(TE_BESTWRAP) wxTE_BESTWRAP;
+%rename(TE_LINEWRAP) wxTE_LINEWRAP;
%rename(TE_RICH2) wxTE_RICH2;
%rename(TE_CAPITALIZE) wxTE_CAPITALIZE;
%rename(TEXT_ALIGNMENT_DEFAULT) wxTEXT_ALIGNMENT_DEFAULT;
// doesn't have focus - use this style to force it to always show it
wxTE_NOHIDESEL,
- // use wxHSCROLL to not wrap text at all, wxTE_LINEWRAP to wrap it at any
- // position and wxTE_WORDWRAP to wrap at words boundary
+ // use wxHSCROLL (wxTE_DONTWRAP) to not wrap text at all, wxTE_CHARWRAP to
+ // wrap it at any position and wxTE_WORDWRAP to wrap at words boundary
+ //
+ // if no wrapping style is given at all, the control wraps at word boundary
wxTE_DONTWRAP,
- wxTE_LINEWRAP,
+ wxTE_CHARWRAP,
wxTE_WORDWRAP,
+ wxTE_BESTWRAP,
+
+ // obsolete synonym
+ wxTE_LINEWRAP,
// force using RichEdit version 2.0 or 3.0 instead of 1.0 (default) for
// wxTE_RICH controls - can be used together with or instead of wxTE_RICH
wxTE_AUTO_URL = wx._controls.TE_AUTO_URL
wxTE_NOHIDESEL = wx._controls.TE_NOHIDESEL
wxTE_DONTWRAP = wx._controls.TE_DONTWRAP
-wxTE_LINEWRAP = wx._controls.TE_LINEWRAP
+wxTE_CHARWRAP = wx._controls.TE_CHARWRAP
wxTE_WORDWRAP = wx._controls.TE_WORDWRAP
+wxTE_BESTWRAP = wx._controls.TE_BESTWRAP
+wxTE_LINEWRAP = wx._controls.TE_LINEWRAP
wxTE_RICH2 = wx._controls.TE_RICH2
wxTE_CAPITALIZE = wx._controls.TE_CAPITALIZE
wxTEXT_ALIGNMENT_DEFAULT = wx._controls.TEXT_ALIGNMENT_DEFAULT