X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/81d66cf39f810503baed79213bc3122fda0ccc7b..8fa2e6a209ab83319bbc4d652067c9123deaa335:/docs/latex/wx/toolbar.tex diff --git a/docs/latex/wx/toolbar.tex b/docs/latex/wx/toolbar.tex index 28468766b0..e2ac776041 100644 --- a/docs/latex/wx/toolbar.tex +++ b/docs/latex/wx/toolbar.tex @@ -23,6 +23,14 @@ wxToolBarBase\\ \helpref{wxEvtHandler}{wxevthandler}\\ \helpref{wxObject}{wxobject} +\wxheading{Include files} + + (to allow wxWindows to select an appropriate toolbar class)\\ + (the base class)\\ + (the non-Windows 95 Windows toolbar class)\\ + (the Windows 95/98 toolbar class)\\ + (the generic simple toolbar class) + \wxheading{Remarks} You may also create a toolbar that is managed by the frame, by @@ -54,6 +62,13 @@ window is passed and the tool id is retrieved from the wxCommandEvent. This is because the id may be -1 when the mouse moves off a tool, and -1 is not allowed as an identifier in the event system. +Note that tool commands (and UI update events for tools) are first sent to +the focus window within the frame that contains the toolbar. If no window within the frame has the focus, +then the events are sent directly to the toolbar (and up the hierarchy to the +frame, depending on where the application has put its event handlers). This allows command and UI update +handling to be processed by specific windows and controls, and not necessarily +by the application frame. + \twocolwidtha{7cm} \begin{twocollist}\itemsep=0pt \twocolitem{{\bf EVT\_TOOL(id, func)}}{Process a wxEVT\_COMMAND\_TOOL\_CLICKED event @@ -226,7 +241,7 @@ Enables or disables the tool. \wxheading{Remarks} -For \helpref{wxToolBarSimple}{wxtoolbarsimple}, does nothing. Some other implementations +For wxToolBarSimple, does nothing. Some other implementations will change the visible state of the tool to indicate that it is disabled. \wxheading{See also} @@ -295,17 +310,11 @@ Returns the left/right and top/bottom margins, which are also used for inter-too \membersection{wxToolBar::GetMaxSize}\label{wxtoolbargetmaxsize} -\constfunc{void}{GetMaxSize}{\param{float*}{ w}, \param{float*}{ h}} +\constfunc{wxSize}{GetMaxSize}{\void} Gets the maximum size taken up by the tools after layout, including margins. This can be used to size a frame around the toolbar window. -\wxheading{Parameters} - -\docparam{w}{Receives the maximum horizontal size.} - -\docparam{h}{Receives the maximum vertical size.} - \membersection{wxToolBar::GetToolClientData}\label{wxtoolbargettoolclientdata} \constfunc{wxObject*}{GetToolClientData}{\param{int }{toolIndex}}