From df001660977c76bad66b587b3839afc67105186c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 May 2002 23:04:46 +0000 Subject: [PATCH] fixed return value of Enable() and Disable() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/window.tex | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/latex/wx/window.tex b/docs/latex/wx/window.tex index 6d1493ba39..ac4fba3bba 100644 --- a/docs/latex/wx/window.tex +++ b/docs/latex/wx/window.tex @@ -397,6 +397,11 @@ Destroys all children of a window. Called automatically by the destructor. Disables the window, same as \helpref{Enable({\tt FALSE})}{wxwindowenable}. +\wxheading{Return value} + +Returns {\tt TRUE} if the window has been disabled, {\tt FALSE} if it had been +already disabled before the call to this function. + \membersection{wxWindow::DragAcceptFiles}\label{wxwindowdragacceptfiles} \func{virtual void}{DragAcceptFiles}{\param{bool}{ accept}} @@ -414,7 +419,7 @@ Windows only. \membersection{wxWindow::Enable}\label{wxwindowenable} -\func{virtual void}{Enable}{\param{bool}{ enable = {\tt TRUE}}} +\func{virtual bool}{Enable}{\param{bool}{ enable = {\tt TRUE}}} Enable or disable the window for user input. @@ -422,6 +427,11 @@ Enable or disable the window for user input. \docparam{enable}{If {\tt TRUE}, enables the window for input. If {\tt FALSE}, disables the window.} +\wxheading{Return value} + +Returns {\tt TRUE} if the window has been enabled or disabled, {\tt FALSE} if +nothing was done, i.e. if the window had already been in the specified state. + \wxheading{See also} \helpref{wxWindow::IsEnabled}{wxwindowisenabled},\rtfsp