]> git.saurik.com Git - wxWidgets.git/blob - contrib/docs/latex/fl/faq.tex
test undividable words
[wxWidgets.git] / contrib / docs / latex / fl / faq.tex
1 \section{FAQ}\label{faq}
2
3 \subsection{A row of all non-fixed bars don't position properly}
4
5 By Julian Smart.
6
7 I found that if I added all non-fixed bars, bars would overlap.
8 This seems to be because the proportional resizing doesn't work
9 before the window is laid out. I worked around this by setting
10 pane sizes {\it before} the bars are added:
11
12 \begin{verbatim}
13 wxSize sz = GetClientSize();
14
15 // Set width for panes to help it do the calculations
16 int i;
17 for (i = 0; i < 2; i++)
18 {
19 cbDockPane& pane = * (m_frameLayout->GetPane(i));
20 pane.SetPaneWidth(sz.x);
21 }
22 \end{verbatim}
23