X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b037754f53cc35e177bf6787bace26c7cecc6e1..7946d7deaac081a745dc616a5eb13ae864865fa2:/docs/latex/wx/layalgor.tex diff --git a/docs/latex/wx/layalgor.tex b/docs/latex/wx/layalgor.tex index 870a5c1273..76a36feb10 100644 --- a/docs/latex/wx/layalgor.tex +++ b/docs/latex/wx/layalgor.tex @@ -58,6 +58,10 @@ way of specifying layouts for which the normal constraint system is unsuitable. \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{Event handling} The algorithm object does not respond to events, but itself generates the @@ -114,6 +118,14 @@ Default constructor. Destructor. +\membersection{wxLayoutAlgorithm::LayoutFrame}\label{wxlayoutalgorithmlayoutframe} + +\constfunc{bool}{LayoutFrame}{\param{wxFrame* }{frame}, \param{wxWindow*}{ mainWindow = NULL}} + +Lays out the children of a normal frame. {\it mainWindow} is set to occupy the remaining space. + +This function simply calls \helpref{wxLayoutAlgorithm::LayoutWindow}{wxlayoutalgorithmlayoutwindow}. + \membersection{wxLayoutAlgorithm::LayoutMDIFrame}\label{wxlayoutalgorithmlayoutmdiframe} \constfunc{bool}{LayoutMDIFrame}{\param{wxMDIParentFrame* }{frame}, \param{wxRect*}{ rect = NULL}} @@ -123,11 +135,14 @@ given rectangle will be used as a starting point instead of the frame's client a The MDI client window is set to occupy the remaining space. -\membersection{wxLayoutAlgorithm::LayoutFrame}\label{wxlayoutalgorithmlayoutframe} +\membersection{wxLayoutAlgorithm::LayoutWindow}\label{wxlayoutalgorithmlayoutwindow} -\constfunc{bool}{LayoutFrame}{\param{wxFrame* }{frame}, \param{wxWindow*}{ mainWindow}} +\constfunc{bool}{LayoutWindow}{\param{wxWindow* }{parent}, \param{wxWindow*}{ mainWindow = NULL}} -Lays out the children of a normal frame. +Lays out the children of a normal frame or other window. -{\it mainWindow} is set to occupy the remaining space. +{\it mainWindow} is set to occupy the remaining space. If this is not specified, then +the last window that responds to a calculate layout event in query mode will get the remaining space +(that is, a non-query OnCalculateLayout event will not be sent to this window and the window will be set +to the remaining size).