X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d57725b5768cc7638a0ca35ec8c203cd3ee4a00e..d441742626a54f7dd10888ebac5abcc0e55f9234:/docs/latex/wx/window.tex diff --git a/docs/latex/wx/window.tex b/docs/latex/wx/window.tex index 019e5b90b1..cd9326c4f0 100644 --- a/docs/latex/wx/window.tex +++ b/docs/latex/wx/window.tex @@ -203,11 +203,18 @@ Note that wxWidgets maintains the stack of windows having captured the mouse and when the mouse is released the capture returns to the window which had had captured it previously and it is only really released if there were no previous window. In particular, this means that you must release the mouse as many times -as you capture it. +as you capture it, unless the window receives +the \helpref{wxMouseCaptureLostEvent}{wxmousecapturelostevent} event. + +Any application which captures the mouse in the beginning of some operation +{\em must} handle \helpref{wxMouseCaptureLostEvent}{wxmousecapturelostevent} +and cancel this operation when it receives the event. The event handler must +not recapture mouse. \wxheading{See also} \helpref{wxWindow::ReleaseMouse}{wxwindowreleasemouse} +\helpref{wxMouseCaptureLostEvent}{wxmousecapturelostevent} \membersection{wxWindow::Center}\label{wxwindowcenter} @@ -787,6 +794,7 @@ Returns the currently captured window. \helpref{wxWindow::HasCapture}{wxwindowhascapture}, \helpref{wxWindow::CaptureMouse}{wxwindowcapturemouse}, \helpref{wxWindow::ReleaseMouse}{wxwindowreleasemouse}, +\helpref{wxMouseCaptureLostEvent}{wxmousecapturelostevent} \helpref{wxMouseCaptureChangedEvent}{wxmousecapturechangedevent} @@ -1390,6 +1398,7 @@ Returns {\tt true} if this window has the current mouse capture. \helpref{wxWindow::CaptureMouse}{wxwindowcapturemouse}, \helpref{wxWindow::ReleaseMouse}{wxwindowreleasemouse}, +\helpref{wxMouseCaptureLostEvent}{wxmousecapturelostevent} \helpref{wxMouseCaptureChangedEvent}{wxmousecapturechangedevent} @@ -1400,6 +1409,18 @@ Returns {\tt true} if this window has the current mouse capture. Returns \texttt{true} if the window has the given \arg{flag} bit set. +\membersection{wxWindow::HasMultiplePages}\label{wxwindowhasmultiplepages} + +\constfunc{virtual bool}{HasMultiplePages}{\void} + +This method should be overridden to return \texttt{true} if this window has +multiple pages. All standard class with multiple pages such as +\helpref{wxNotebook}{wxnotebook}, \helpref{wxListbook}{wxlistbook} and +\helpref{wxTreebook}{wxtreebook} already override it to return \texttt{true} +and user-defined classes with similar behaviour should do it as well to allow +the library to handle such windows appropriately. + + \membersection{wxWindow::HasScrollbar}\label{wxwindowhasscrollbar} \constfunc{virtual bool}{HasScrollbar}{\param{int }{orient}} @@ -2349,6 +2370,7 @@ Releases mouse input captured with \helpref{wxWindow::CaptureMouse}{wxwindowcapt \helpref{wxWindow::CaptureMouse}{wxwindowcapturemouse}, \helpref{wxWindow::HasCapture}{wxwindowhascapture}, \helpref{wxWindow::ReleaseMouse}{wxwindowreleasemouse}, +\helpref{wxMouseCaptureLostEvent}{wxmousecapturelostevent} \helpref{wxMouseCaptureChangedEvent}{wxmousecapturechangedevent} @@ -2777,14 +2799,12 @@ default for the reasons explained in the window from being used as an implicit parent for the dialogs which were created without a parent. It is useful for the windows which can disappear at any moment as creating children of such windows results in fatal problems.} -\twocolitem{\windowstyle{wxFRAME\_EX\_CONTEXTHELP}}{Under Windows, puts a query button on the -caption. When pressed, Windows will go into a context-sensitive help mode and wxWidgets will send -a wxEVT\_HELP event if the user clicked on an application window. +\twocolitem{\windowstyle{wxWS\_EX\_CONTEXTHELP}}{Under Windows, puts a query +button on the caption. When pressed, Windows will go into a context-sensitive +help mode and wxWidgets will send a wxEVT\_HELP event if the user clicked on an +application window. This style cannot be used together with wxMAXIMIZE\_BOX or wxMINIMIZE\_BOX, so -you should use the style of -{\tt wxDEFAULT\_FRAME\_STYLE \& \textasciitilde(wxMINIMIZE\_BOX | wxMAXIMIZE\_BOX)} for the -frames having this style (the dialogs don't have minimize nor maximize box by -default)} +these two styles are automatically turned of if this one is used.} \twocolitem{\windowstyle{wxWS\_EX\_PROCESS\_IDLE}}{This window should always process idle events, even if the mode set by \helpref{wxIdleEvent::SetMode}{wxidleeventsetmode} is wxIDLE\_PROCESS\_SPECIFIED.} \twocolitem{\windowstyle{wxWS\_EX\_PROCESS\_UI\_UPDATES}}{This window should always process UI update events,