]> git.saurik.com Git - wxWidgets.git/commitdiff
Added FAQ topic for FL
authorJulian Smart <julian@anthemion.co.uk>
Thu, 4 Apr 2002 21:03:18 +0000 (21:03 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 4 Apr 2002 21:03:18 +0000 (21:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/docs/latex/fl/faq.tex [new file with mode: 0644]
contrib/docs/latex/fl/topics.tex

diff --git a/contrib/docs/latex/fl/faq.tex b/contrib/docs/latex/fl/faq.tex
new file mode 100644 (file)
index 0000000..3a805fc
--- /dev/null
@@ -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}
+
index 94d39364022fa29db18b7b25270eac013f32d7e5..edb3b94cf66ddcb3ccb658c579e3eb6270a7dcac 100644 (file)
@@ -6,4 +6,5 @@ This chapter contains a selection of topic overviews, first things first:
 
 \input tusage.tex
 \input tevents.tex
+\input faq.tex