This commit was manufactured by cvs2svn to create tag 'WX_2_2_9'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/tags/WX_2_2_9@13364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,7 +18,7 @@ and will be supported by the user community for some time. And when you have
|
||||
changed to 2.0, we hope that you will appreciate the benefits in terms
|
||||
of greater flexibility, better user interface aesthetics, improved C++ conformance,
|
||||
improved compilation speed, and many other enhancements. The revised architecture
|
||||
of 2.0 will ensure that wxWindows can continue to evolve for the forseeable
|
||||
of 2.0 will ensure that wxWindows can continue to evolve for the foreseeable
|
||||
future.
|
||||
|
||||
{\it Please note that this document is a work in progress.}
|
||||
@@ -75,7 +75,7 @@ be no conversion problems later on.
|
||||
font sizes (for example, a 12-point font will appear bigger than before). Write your application
|
||||
to be flexible where fonts are concerned.
|
||||
Don't rely on fonts being similarly-sized across platforms, as they were (by chance) between
|
||||
Windows and X under wxWindows 1.66. Yes, this is not easy... but I think it's better to conform to the
|
||||
Windows and X under wxWindows 1.66. Yes, this is not easy... but I think it is better to conform to the
|
||||
standards of each platform, and currently the size difference makes it difficult to
|
||||
conform to Windows UI standards. You may eventually wish to build in a global 'fudge-factor' to compensate
|
||||
for size differences. The old font sizing will still be available via wx\_setup.h, so do not panic...
|
||||
@@ -147,7 +147,7 @@ See \helpref{Device contexts and painting}{portingdc}.
|
||||
These objects - instances of classes such as wxPen, wxBrush, wxBitmap (but not wxColour) -
|
||||
are now implemented with reference-counting. This makes assignment a very cheap operation,
|
||||
and also means that management of the resource is largely automatic. You now pass {\it references} to
|
||||
objects to functions such as wxDC::SetPen, not pointers, so you will need to derefence your pointers.
|
||||
objects to functions such as wxDC::SetPen, not pointers, so you will need to dereference your pointers.
|
||||
The device context does not store a copy of the pen
|
||||
itself, but takes a copy of it (via reference counting), and the object's data gets freed up
|
||||
when the reference count goes to zero. The application does not have to worry so much about
|
||||
@@ -260,7 +260,7 @@ and simply assign the result to a wxString object. For example, replace this:
|
||||
|
||||
{\small\begin{verbatim}
|
||||
char* s = wxFunctionThatReturnsString();
|
||||
s = copystring(s); // Take a copy in case it's temporary
|
||||
s = copystring(s); // Take a copy in case it is temporary
|
||||
.... // Do something with it
|
||||
delete[] s;
|
||||
\end{verbatim}
|
||||
@@ -362,7 +362,7 @@ Add an OnCloseWindow event handler using an EVT\_CLOSE event table entry. For de
|
||||
about window destruction, see the Windows Deletion Overview in the manual. This is a subtle
|
||||
topic so please read it very carefully. Basically, OnCloseWindow is now responsible for
|
||||
destroying a window with Destroy(), but the default implementation (for example for wxDialog) may not
|
||||
destroy the window, so to be sure, always provide this event handler so it's obvious what's going on.
|
||||
destroy the window, so to be sure, always provide this event handler so it is obvious what's going on.
|
||||
|
||||
\subsection{OnEvent}
|
||||
|
||||
|
Reference in New Issue
Block a user