deprecate wxTE_AUTO_SCROLL as it's always on in the ports which support it anyhow (#2176)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-06-28 18:18:54 +00:00
parent ec27ba21ed
commit 053ac76fa2
5 changed files with 17 additions and 7 deletions

View File

@ -225,7 +225,7 @@ Deprecated methods and their replacements
passed to it was interpreted in physical, not logical, coordinates. Replace
it with SetDeviceClippingRegion() if this was the correct thing to do in your
code.
- wxTE_AUTO_SCROLL style is deprecated as it's always on by default anyhow.
Major new features in this release

View File

@ -149,5 +149,9 @@ Finally, a few structure fields, notable @c wxCmdLineEntryDesc::shortName,
Of course, this will change the format of the wxConfig output which may be
undesirable.
- wxTE_AUTO_SCROLL style is deprecated as it's always on by default anyhow in
the ports which support it so you should simply remove any mentions of it
from your code.
*/

View File

@ -65,7 +65,6 @@ const wxTextCoord wxInvalidTextCoord = -2;
// ----------------------------------------------------------------------------
#define wxTE_NO_VSCROLL 0x0002
#define wxTE_AUTO_SCROLL 0x0008
#define wxTE_READONLY 0x0010
#define wxTE_MULTILINE 0x0020
@ -108,6 +107,11 @@ const wxTextCoord wxInvalidTextCoord = -2;
#define wxTE_LINEWRAP wxTE_CHARWRAP
#endif // WXWIN_COMPATIBILITY_2_6
#if WXWIN_COMPATIBILITY_2_8
// this style is (or at least should be) on by default now, don't use it
#define wxTE_AUTO_SCROLL 0
#endif // WXWIN_COMPATIBILITY_2_8
// 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
#define wxTE_RICH2 0x8000

View File

@ -672,10 +672,7 @@ void wxGridCellTextEditor::DoCreate(wxWindow* parent,
wxEvtHandler* evtHandler,
long style)
{
style |= wxTE_PROCESS_ENTER |
wxTE_PROCESS_TAB |
wxTE_AUTO_SCROLL |
wxNO_BORDER;
style |= wxTE_PROCESS_ENTER | wxTE_PROCESS_TAB | wxNO_BORDER;
m_control = new wxTextCtrl(parent, id, wxEmptyString,
wxDefaultPosition, wxDefaultSize,

View File

@ -28,7 +28,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxTextCtrlXmlHandler, wxXmlResourceHandler)
wxTextCtrlXmlHandler::wxTextCtrlXmlHandler() : wxXmlResourceHandler()
{
XRC_ADD_STYLE(wxTE_NO_VSCROLL);
XRC_ADD_STYLE(wxTE_AUTO_SCROLL);
XRC_ADD_STYLE(wxTE_PROCESS_ENTER);
XRC_ADD_STYLE(wxTE_PROCESS_TAB);
XRC_ADD_STYLE(wxTE_MULTILINE);
@ -48,6 +47,12 @@ wxTextCtrlXmlHandler::wxTextCtrlXmlHandler() : wxXmlResourceHandler()
#endif // WXWIN_COMPATIBILITY_2_6
XRC_ADD_STYLE(wxTE_CHARWRAP);
XRC_ADD_STYLE(wxTE_WORDWRAP);
// this style doesn't exist since wx 2.9.0 but we still support it (by
// ignoring it silently) in XRC files to avoid unimportant warnings when
// using XRC produced by old tools
AddStyle(_T("wxTE_AUTO_SCROLL"), 0);
AddWindowStyles();
}