Added wxTopLevelWindow::SetTranslucency and CanSetTranslucency, with

implementations (so far) for wxMSW and wxMac.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-07-16 03:28:23 +00:00
parent 0b850f25d2
commit 50f3c41d61
11 changed files with 226 additions and 166 deletions

View File

@@ -159,6 +159,8 @@ All (GUI):
- Fixed problem with zoom setting in print preview.
- Moved wxRichTextCtrl from the advanced library to its own.
- wxNB_HITTEST_* flags renamed to wxBK_HITTEST_* to serve all book controls.
- Added wxTopLevelWindow::SetTranslucency and CanSetTranslucency, with
implementations (so far) for wxMSW and wxMac.
wxMSW:

View File

@@ -29,6 +29,16 @@ applicable for the two classes above.
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxTopLevelWindow::CanSetTranslucency}\label{wxtoplevelwindowcansettranslucency}
\func{virtual bool}{CanSetTranslucency}{\void}
Returns \true if the platform supports making the window translucent.
\wxheading{See also}
\helpref{wxTopLevelWindow::SetTranslucency}{wxtoplevelwindowsettranslucency}
\membersection{wxTopLevelWindow::GetIcon}\label{wxtoplevelwindowgeticon}
@@ -271,6 +281,22 @@ Sets the window title.
\helpref{wxTopLevelWindow::GetTitle}{wxtoplevelwindowgettitle}
\membersection{wxTopLevelWindow::SetTranslucency}\label{wxtoplevelwindowsettranslucency}
\func{virtual bool}{SetTranslucency}{\param{int }{ alpha}}
If the platform supports it will set the window to be translucent
\wxheading{Parameters}
\docparam{alpha}{Determines how opaque or transparent the window will
be. A value of 0 sets the window to be fully transparent, and a
value of 255 sets the window to be fully opaque.}
Returns \true if the translucency was successfully changed.
\membersection{wxTopLevelWindow::ShouldPreventAppExit}\label{wxtoplevelwindowshouldpreventappexit}
\constfunc{virtual bool}{ShouldPreventAppExit}{\void}