diff --git a/contrib/docs/latex/fl/faq.tex b/contrib/docs/latex/fl/faq.tex new file mode 100644 index 0000000000..3a805fc844 --- /dev/null +++ b/contrib/docs/latex/fl/faq.tex @@ -0,0 +1,23 @@ +\section{FAQ}\label{faq} + +\subsection{A row of all non-fixed bars don't position properly} + +By Julian Smart. + +I found that if I added all non-fixed bars, bars would overlap. +This seems to be because the proportional resizing doesn't work +before the window is laid out. I worked around this by setting +pane sizes {\it before} the bars are added: + +\begin{verbatim} + wxSize sz = GetClientSize(); + + // Set width for panes to help it do the calculations + int i; + for (i = 0; i < 2; i++) + { + cbDockPane& pane = * (m_frameLayout->GetPane(i)); + pane.SetPaneWidth(sz.x); + } +\end{verbatim} + diff --git a/contrib/docs/latex/fl/topics.tex b/contrib/docs/latex/fl/topics.tex index 94d3936402..edb3b94cf6 100644 --- a/contrib/docs/latex/fl/topics.tex +++ b/contrib/docs/latex/fl/topics.tex @@ -6,4 +6,5 @@ This chapter contains a selection of topic overviews, first things first: \input tusage.tex \input tevents.tex +\input faq.tex