X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe604ccddcf5696a751892ad70dbc822be239c95..43f06cfda107a4a74776b58dca3353a4414ecfb1:/docs/latex/wx/ttab.tex?ds=inline diff --git a/docs/latex/wx/ttab.tex b/docs/latex/wx/ttab.tex index d7654a09fa..b3b4112c82 100644 --- a/docs/latex/wx/ttab.tex +++ b/docs/latex/wx/ttab.tex @@ -1,4 +1,4 @@ -\section{Tab classes overview}\label{wxtaboverview} +\section{wxTab classes overview}\label{wxtaboverview} Classes: \helpref{wxTabView}{wxtabview}, \helpref{wxPanelTabView}{wxpaneltabview}, \helpref{wxTabbedPanel}{wxtabbedpanel}, \helpref{wxTabbedDialog}{wxtabbeddialog}, @@ -9,6 +9,10 @@ used to switch between panels or other information. Tabs are most commonly used in dialog boxes where the number of options is too great to fit on one dialog. +{\bf Please note} that the preferred class for programming tabbed windows is \helpref{wxNotebook}{wxnotebook}. +The old tab classes are retained for backward compatibility and also to implement +wxNotebook on platforms that don't have native tab controls. + \wxheading{The appearance and behaviour of a wxTabbedDialog} The following screenshot shows the appearance of the sample tabbed dialog application. @@ -108,7 +112,7 @@ void MyDialog::Init(void) // Calculate the tab width for 4 tabs, based on a view width of 326 and // the current horizontal spacing. Adjust the view width to exactly fit // the tabs. - view->CalculateTabWidth(4, TRUE); + view->CalculateTabWidth(4, true); if (!view->AddTab(TEST_TAB_CAT, wxString("Cat"))) return; @@ -165,39 +169,6 @@ void MyDialog::Init(void) \end{verbatim} } -\subsection{wxTab change log} - -June 3rd 1997, Version 1.2 - -\begin{itemize}\itemsep=0pt -\item Fixed bug which drew some tabs incorrectly. -\item Altered sample to put buttons below tabs, as per standard -Windows conventions. -\item Added improvements from Hitachi Europe Limited: draws correctly -on Motif and Windows, and tabs are now rounded - much nicer. -\end{itemize} - -April 29th 1996, Version 1.1 - -\begin{itemize}\itemsep=0pt -\item Added SetHorizontalTabOffset, SetHorizontalTabSpacing. -\item Corrected bug in colouring tabs (1 pixel out). -\item Corrected bug in adding tabs: last tab on first row could overlap right-hand -edge. -\item Added Layout function to allow resizing of the view rectangle and subsequent redrawing -of the tabs. -\item Added WXTAB\_VERSION symbol. -\item Fixed bug in SetTabSelection which did not move the selected tab to the first row. -\item Added argument in SetTabSelection to optionally avoid calling activation code. -\item Changed wxPanelTabView API to allow use of any window, not just a panel, in a tab. -\end{itemize} - -April 24th 1996, Version 1.0 - -\begin{itemize}\itemsep=0pt -\item First release. -\end{itemize} - \section{wxTabView overview}\label{wxtabviewoverview} Classes: \helpref{wxTabView}{wxtabview}, \helpref{wxPanelTabView}{wxpaneltabview}