X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/500b128d0e42dfaa70f46e58d3cc5300c6b25489..a17305ea876e64131467348b24f25929f98986d7:/docs/doxygen/overviews/changes_since28.h diff --git a/docs/doxygen/overviews/changes_since28.h b/docs/doxygen/overviews/changes_since28.h index 286671a76a..8ec1c9fc1e 100644 --- a/docs/doxygen/overviews/changes_since28.h +++ b/docs/doxygen/overviews/changes_since28.h @@ -4,7 +4,7 @@ // Author: Vadim Zeitlin // Created: 2008-05-08 // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -61,6 +61,24 @@ to use, e.g.: OpenLogFile(s.mb_str()); // OK: always calls narrow string overload OpenLogFile(s.wc_str()); // OK: always calls wide string overload @endcode +A common example of such problem arises with @c std::fstream class constructor +in Microsoft Visual C++ standard library implementation. In addition to a +constructor from @c const @c char * which this class must have, it also +provides a constructor taking a wide character file name. Because of this, code +like the following +@code + #include + + void MyFunc(const wxString& filename) + { + std::ifstream ifs(filename.c_str()); + ... + } +@endcode +does not compile when using Microsoft Visual C++ and needs to be changed to use +mb_str() (which will not work for file names containing Unicode characters, +consider using wxWidgets classes and functions to work with such file names as +they are not supported by standard C++ library). The other class of incompatible changes is due to modifying some virtual methods to use @c wxString parameters instead of @c const @c wxChar* ones to @@ -149,5 +167,20 @@ 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. + +- If you use wxScrolled::SetTargetWindow() you must override + wxScrolled::GetSizeAvailableForScrollTarget() method to compute the size + available for the scroll target as function of the main window size, please + see the documentation of this method for more details. + +- Signatures of wxDataViewCustomRenderer::Activate(), + wxDataViewCustomRenderer::LeftClick() and + wxDataViewCustomRenderer::StartDrag() virtual methods changed. You will need + to change them in your derived renderer class too if you override them. + */