Updated readme and manual version and date

Some clarifications of wxBORDER_THEME
Don't use wxBORDER_DOUBLE in GTK+/Univ



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-09-19 13:39:45 +00:00
parent b460fd01ab
commit 648955779b
5 changed files with 17 additions and 10 deletions

View File

@@ -32,7 +32,7 @@
}} }}
\winhelpignore{\author{Julian Smart, Robert Roebling, Vadim Zeitlin, \winhelpignore{\author{Julian Smart, Robert Roebling, Vadim Zeitlin,
Robin Dunn, et al} Robin Dunn, et al}
\date{August, 2007} \date{September, 2007}
} }
\makeindex \makeindex
\begin{document} \begin{document}

View File

@@ -37,9 +37,10 @@ sunken border. Other native controls such as wxTextCtrl in non-rich edit mode, a
already paint themed borders where appropriate. To use themed borders on other windows, such already paint themed borders where appropriate. To use themed borders on other windows, such
as wxPanel, pass the wxBORDER\_THEME style. as wxPanel, pass the wxBORDER\_THEME style.
Note that in wxWidgets 2.9 and above, wxBORDER\_THEME is defined to be 0 and it is not necessary Note that in wxWidgets 2.9 and above, wxBORDER\_THEME will be used on all platforms to
to pass the border style explicitly: wxWidgets will deduce the correct border style itself if there indicate that there should definitely be a border, whose style is determined by wxWidgets for the current platform.
is none supplied. Because of the requirements of binary compatibility, this automatic border wxWidgets 2.9 and above will also be better at determining whether there should be a themed border
Because of the requirements of binary compatibility, this automatic border
capability could not be put into wxWidgets 2.8 except for built-in, native controls. In 2.8, the border capability could not be put into wxWidgets 2.8 except for built-in, native controls. In 2.8, the border
must be specified for custom controls and windows. However, to make it easier to decide must be specified for custom controls and windows. However, to make it easier to decide
what style should be passed, you can use (on Windows only) the function wxWindow::GetThemedBorderStyle() what style should be passed, you can use (on Windows only) the function wxWindow::GetThemedBorderStyle()
@@ -48,7 +49,7 @@ wxBORDER\_SIMPLE will be returned; on Windows 95/98/NT/2K, wxBORDER\_SUNKEN will
returned, and on XP and above where theming is turned on, wxBORDER\_THEME will be returned. returned, and on XP and above where theming is turned on, wxBORDER\_THEME will be returned.
This function does not exist in wxWidgets 2.9 and is not part of the official API. This function does not exist in wxWidgets 2.9 and is not part of the official API.
wxBORDER\_THEME has no effect on platforms other than Windows. In 2.8, wxBORDER\_THEME is normally interpreted as a wxBORDER\_SUNKEN on platforms other than Windows.
\subsection{wxWinCE}\label{wxwince} \subsection{wxWinCE}\label{wxwince}

View File

@@ -153,5 +153,5 @@ web site.
Have fun! Have fun!
The wxWidgets Team, August 2007 The wxWidgets Team, September 2007

View File

@@ -4297,8 +4297,11 @@ void wxWindowGTK::GtkScrolledWindowSetBorder(GtkWidget* w, int wxstyle)
gtkstyle = GTK_SHADOW_OUT; gtkstyle = GTK_SHADOW_OUT;
else if (wxstyle & wxBORDER_SUNKEN) else if (wxstyle & wxBORDER_SUNKEN)
gtkstyle = GTK_SHADOW_IN; gtkstyle = GTK_SHADOW_IN;
// wxBORDER_DOUBLE is no longer supported since wxBORDER_THEME takes on the same value
#if 0
else if (wxstyle & wxBORDER_DOUBLE) else if (wxstyle & wxBORDER_DOUBLE)
gtkstyle = GTK_SHADOW_ETCHED_IN; gtkstyle = GTK_SHADOW_ETCHED_IN;
#endif
else //default else //default
gtkstyle = GTK_SHADOW_IN; gtkstyle = GTK_SHADOW_IN;

View File

@@ -412,15 +412,18 @@ void wxStdRenderer::DrawBorder(wxDC& dc,
switch ( border ) switch ( border )
{ {
case wxBORDER_THEME:
case wxBORDER_SUNKEN: case wxBORDER_SUNKEN:
DrawSunkenBorder(dc, &rect); DrawSunkenBorder(dc, &rect);
break; break;
// wxBORDER_DOUBLE is no longer supported since wxBORDER_THEME takes on the same value
#if 0
case wxBORDER_DOUBLE: case wxBORDER_DOUBLE:
DrawAntiSunkenBorder(dc, &rect); DrawAntiSunkenBorder(dc, &rect);
DrawExtraBorder(dc, &rect); DrawExtraBorder(dc, &rect);
break; break;
#endif
case wxBORDER_STATIC: case wxBORDER_STATIC:
DrawStaticBorder(dc, &rect); DrawStaticBorder(dc, &rect);
break; break;