]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/window.tex
don't wake up on Windows messages when waiting for thread termination in a console...
[wxWidgets.git] / docs / latex / wx / window.tex
index 7ff0b460813005c68050ffe3c78862cae566180e..a416fa51511177db69c0d77b390d38f80f450716 100644 (file)
@@ -1735,6 +1735,23 @@ navigation behaviour for the tab key, since the standard default behaviour for
 a multiline text control with the wxTE\_PROCESS\_TAB style is to insert a tab
 and not navigate to the next control.
 
+
+\membersection{wxWindow::NextControlId}\label{wxwindownextcontrolid}
+
+\func{static int}{NextControlId}{\param{int }{winid}}
+
+If two controls are created consecutively using \texttt{wxID\_ANY} id, this
+function allows to retrieve the effective id of the latter control from the id
+of the former. This is useful for example to find the control following its 
+\helpref{wxStaticText}{wxstatictext} label if only the id of or pointer to the
+label is available to the caller but it is known that the two controls were
+created together.
+
+\wxheading{See also}
+
+\helpref{PrevControlId}{wxwindowprevcontrolid}
+
+
 %% VZ: wxWindow::OnXXX() functions should not be documented but I'm leaving
 %%     the old docs here in case we want to move any still needed bits to
 %%     the right location (i.e. probably the corresponding events docs)
@@ -2294,6 +2311,14 @@ implements the following methods:\par
 }
 
 
+\membersection{wxWindow::PrevControlId}\label{wxwindowprevcontrolid}
+
+\func{static int}{PrevControlId}{\param{int }{winid}}
+
+This is similar to \helpref{NextControlId}{wxwindownextcontrolid} but returns
+the id of the control created just before the one with the given \arg{winid}.
+
+
 \membersection{wxWindow::PushEventHandler}\label{wxwindowpusheventhandler}
 
 \func{void}{PushEventHandler}{\param{wxEvtHandler* }{handler}}
@@ -3526,7 +3551,7 @@ exactly the same number of times as \helpref{Freeze}{wxwindowfreeze}.
 
 \membersection{wxWindow::ToggleWindowStyle}\label{wxwindowtogglewindowstyle}
 
-\func{void}{ToggleWindowStyle}{\param{int }{flag}}
+\func{bool}{ToggleWindowStyle}{\param{int }{flag}}
 
 Turns the given \arg{flag} on if it's currently turned off and vice versa.
 This function cannot be used if the value of the flag is $0$ (which is often
@@ -3535,6 +3560,11 @@ the case for default flags).
 Also, please notice that not all styles can be changed after the control
 creation.
 
+\wxheading{Return value}
+
+Returns \true if the style was turned on by this function, \false if it was
+switched off.
+
 \wxheading{See also}
 
 \helpref{wxWindow::SetWindowStyleFlag}{wxwindowsetwindowstyleflag},\rtfsp