X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/963863adadcb40ba4af39300b2715d16fade8510..3da93aae505563c359f58b357e6c79cd117c5320:/docs/latex/wx/tsamples.tex diff --git a/docs/latex/wx/tsamples.tex b/docs/latex/wx/tsamples.tex index 2a3df6db7f..e0b64545bc 100644 --- a/docs/latex/wx/tsamples.tex +++ b/docs/latex/wx/tsamples.tex @@ -8,7 +8,6 @@ %% Copyright: (c) wxWindows team %% Licence: wxWindows licence %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - % NB: please keep the subsections in alphabetic order! \section{wxWindows samples}\label{samples} @@ -29,7 +28,7 @@ most commented sample of all - looking at its source code is recommended. The next most useful sample is probably the \helpref{controls}{samplecontrols} one which shows many of wxWindows standard controls, such as buttons, -listboxes, checkboxes, comboboxes e.t.c. +listboxes, checkboxes, comboboxes etc. Other, more complicated controls, have their own samples. In this category you may find the following samples showing the corresponding controls: @@ -90,6 +89,7 @@ notebook pages, advanving pages programmatically and vetoing a page change by intercepting the \helpref{wxNotebookEvent}{wxnotebookevent}. The various controls tested are listed here: + \begin{twocollist}\itemsep=0pt \twocolitem{\helpref{wxButton}{wxbutton}}{Push button control, displaying text} \twocolitem{\helpref{wxBitmapButton}{wxbitmapbutton}}{Push button control, displaying a bitmap} @@ -241,7 +241,7 @@ of which is drawn directly in the window, the other one is drawn into a and then reloaded from the PNG file again so that conversions between wxImage and wxBitmap as well as loading and save PNG files are tested. -At the bottom of the main frame is a test for using a mono-chrome bitmap by +At the bottom of the main frame is a test for using a monochrome bitmap by drawing into a \helpref{wxMemoryDC}{wxmemorydc}. The bitmap is then drawn specifying the foreground and background colours with \helpref{wxDC::SetTextForeground}{wxdcsettextforeground} and @@ -318,21 +318,16 @@ immediately notified if the other end closes the connection. The sockets sample is work in progress. Coming soon: -\begin{itemize} - +\begin{itemize}\itemsep=0pt \item More tests for basic socket functionality. - \item Tests for the recently added datagram socket classes. - \item Tests for protocol classes (wxProtocol and its descendants). - \item New samples which actually do something useful (suggestions accepted). - \end{itemize} \subsection{Statbar sample}\label{samplestatbar} -This sample shows how to create and use wxStaticBar. Although most of the +This sample shows how to create and use wxStatusBar. Although most of the samples have a statusbar, they usually only create a default one and only do it once. @@ -387,20 +382,16 @@ The toolbar sample shows the \helpref{wxToolBar}{wxtoolbar} class in action. The following things are demonstrated: -\begin{itemize} - -\item Creating the toolbar using \helpref{wxToolBar::AddTool}{wxtoolbaraddtool} +\begin{itemize}\itemsep=0pt +\item Creating the toolbar using \helpref{wxToolBar::AddTool}{wxtoolbaraddtool} and \helpref{wxToolBar::AddControl}{wxtoolbaraddcontrol}: see MyApp::InitToolbar in the sample. - \item Using {\tt EVT\_UPDATE\_UI} handler for automatically enabling/disabling toolbar buttons without having to explicitly call EnableTool. This is is done in MyFrame::OnUpdateCopyAndCut. - \item Using \helpref{wxToolBar::DeleteTool}{wxtoolbardeletetool} and \helpref{wxToolBar::InsertTool}{wxtoolbarinserttool} to dynamically update the toolbar. - \end{itemize} \subsection{Treectrl sample}\label{sampletreectrl} @@ -413,3 +404,4 @@ the bottom part of the frame). Adding, inserting and deleting items and branches from the tree as well as sorting (in default alphabetical order as well as in custom one) is demonstrated here as well - try the corresponding menu entries. +