From f89a1397df5061fb3be31c855d79641e42164c6d Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 31 May 2002 09:59:00 +0000 Subject: [PATCH] Doc tweaks for FindWindowByXX Docs for SetThemeEnabled Docs for wxToolBar::FindControl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/toolbar.tex | 7 +++++++ docs/latex/wx/window.tex | 28 +++++++++++++++++++++------- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/docs/latex/wx/toolbar.tex b/docs/latex/wx/toolbar.tex index c0daf6f9ed..6b1ddc01d0 100644 --- a/docs/latex/wx/toolbar.tex +++ b/docs/latex/wx/toolbar.tex @@ -320,6 +320,13 @@ will change the visible state of the tool to indicate that it is disabled. \helpref{wxToolBar::GetToolEnabled}{wxtoolbargettoolenabled},\rtfsp \helpref{wxToolBar::ToggleTool}{wxtoolbartoggletool} +\membersection{wxToolBar::FindControl}\label{wxtoolbarfindcontrol} + +\func{wxControl*}{FindControl}{\param{int }{id}} + +Returns a pointer to the control identified by {\it id} or +NULL if no corresponding control is found. + \membersection{wxToolBar::FindToolForPosition}\label{wxtoolbarfindtoolforposition} \constfunc{wxToolBarTool*}{FindToolForPosition}{\param{const float}{ x}, \param{const float}{ y}} diff --git a/docs/latex/wx/window.tex b/docs/latex/wx/window.tex index 5ccf411a0d..d1c5ac5fbe 100644 --- a/docs/latex/wx/window.tex +++ b/docs/latex/wx/window.tex @@ -469,9 +469,9 @@ implements the following methods:\par \end{twocollist}} } -\membersection{wxWindow::FindWindowById}\label{wxwindowfindwindow} +\membersection{wxWindow::FindWindowById}\label{wxwindowfindwindowbyid} -\func{wxWindow*}{FindWindowById}{\param{long}{ id}} +\func{static wxWindow*}{FindWindowById}{\param{long}{ id}, \param{wxWindow*}{ parent = NULL}} Find the first window with the given {\it id}. @@ -481,11 +481,11 @@ The search is recursive in both cases. \wxheading{See also} -\helpref{FindWindowById}{wxwindowfindwindowbyid} +\helpref{FindWindow}{wxwindowfindwindow} \membersection{wxWindow::FindWindowByName}\label{wxwindowfindwindowbyname} -\func{wxWindow*}{FindWindowByName}{\param{long}{ id}} +\func{static wxWindow*}{FindWindowByName}{\param{const wxString\&}{ name}, \param{wxWindow*}{ parent = NULL}} Find a window by its name (as given in a window constructor or {\bf Create} function call). If {\it parent} is NULL, the search will start from all top-level @@ -497,11 +497,11 @@ If no window with such name is found, \wxheading{See also} -\helpref{FindWindowById}{wxwindowfindwindowbyid} +\helpref{FindWindow}{wxwindowfindwindow} \membersection{wxWindow::FindWindowByLabel}\label{wxwindowfindwindowbylabel} -\func{wxWindow*}{FindWindowByLabel}{\param{long}{ id}} +\func{static wxWindow*}{FindWindowByLabel}{\param{const wxString\&}{ label}, \param{wxWindow*}{ parent = NULL}} Find a window by its label. Depending on the type of window, the label may be a window title or panel item label. If {\it parent} is NULL, the search will start from all top-level @@ -510,7 +510,7 @@ The search is recursive in both cases. \wxheading{See also} -\helpref{FindWindowById}{wxwindowfindwindowbyid} +\helpref{FindWindow}{wxwindowfindwindow} \membersection{wxWindow::Fit}\label{wxwindowfit} @@ -2519,6 +2519,20 @@ Sets the window's title. Applicable only to frames and dialogs. \helpref{wxWindow::GetTitle}{wxwindowgettitle} +\membersection{wxWindow::SetThemeEnabled}\label{wxwindowsetthemeenabled} + +\func{virtual void}{SetThemeEnabled}{\param{bool }{enable}} + +This function tells a window if it should use the system's "theme" code +to draw the windows' background instead if its own background drawing +code. This does not always have any effect since the underlying platform +obviously needs to support the notion of themes in user defined windows. +One such platform is GTK+ where windows can have (very colourful) backgrounds +defined by a user's selected theme. + +Dialogs, notebook pages and the status bar have this flag set to TRUE +by default so that the default look and feel is simulated best. + \membersection{wxWindow::SetValidator}\label{wxwindowsetvalidator} \func{virtual void}{SetValidator}{\param{const wxValidator\&}{ validator}} -- 2.45.2