From cddfbd9f55f9b5c15705ab32b22653cf68e400ab Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 2 Jan 2000 18:13:45 +0000 Subject: [PATCH] Some more samples documented etc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/tcommdlg.tex | 5 ++--- docs/latex/wx/tsamples.tex | 36 +++++++++++++++++++++++++++++++++ samples/scrollsub/scrollsub.cpp | 4 ++-- 3 files changed, 40 insertions(+), 5 deletions(-) diff --git a/docs/latex/wx/tcommdlg.tex b/docs/latex/wx/tcommdlg.tex index be0e6febb6..ccea6686b5 100644 --- a/docs/latex/wx/tcommdlg.tex +++ b/docs/latex/wx/tcommdlg.tex @@ -154,8 +154,7 @@ If path is ``", the current directory will be used. If filename is ``", no default filename will be supplied. The wildcard determines what files are displayed in the file selector, and file extension supplies a type extension for the required filename. Flags may be a combination of wxOPEN, -wxSAVE, wxOVERWRITE\_PROMPT, wxHIDE\_READONLY, or 0. They are only significant -at present in Windows. +wxSAVE, wxOVERWRITE\_PROMPT, wxHIDE\_READONLY, wxFILE\_MUST\_EXIST or 0. Both the X and Windows versions implement a wildcard filter. Typing a filename containing wildcards (*, ?) in the filename text item, and @@ -164,7 +163,7 @@ displayed. In the X version, supplying no default name will result in the wildcard filter being inserted in the filename text item; the filter is ignored if a default name is supplied. -Under Windows (only), the wildcard may be a specification for multiple +The wildcard may be a specification for multiple types of file with a description for each, such as: \begin{verbatim} diff --git a/docs/latex/wx/tsamples.tex b/docs/latex/wx/tsamples.tex index 13bae978f2..db3ee869bb 100644 --- a/docs/latex/wx/tsamples.tex +++ b/docs/latex/wx/tsamples.tex @@ -19,6 +19,42 @@ make it easier to find the relevant one if a simple grep through all sources didn't help. They also provide some notes about using the samples and what features of wxWindows are they supposed to test. +\subsection{Checklist sample}\label{samplechecklist} + +This sample demonstrates the use of the \helpref{wxCheckListBox}{wxchecklistbox} +class intercepting check, select and double click events. It also tests the +use of various methods modifiying the control, such as by deleting items +from it or inserting new once (these fucntions are actually implememted in +the parent class \helpref{wxListBox}{wxlistbox} so the sample tests that class +as well). The layout of the dialog is created using a \helpref{wxBoxSizer}{wxboxsizer} +demonstrating a simple dynamic layout. + +\subsection{Config sample}\label{sampleconfig} + +This sample demonstrates the \helpref{wxConfig}{wxconfigbase} classes in a platform +indepedent way, i.e. it uses text based files to store a given configuration under +Unix and uses the Registry under Windows. + +See \helpref{wxConfig overview}{wxconfigoverview} for the descriptions of all +features of this class. + +\subsection{Dialogs sample}\label{sampledialogs} + +This sample shows how to use the common dialogs available from wxWindows. These +dialogs are desrcibed in details in the \helpref{Common dialogs overview}{commondialogsoverview}. + +\subsection{Scroll subwindow sample}\label{samplescrollsub} + +This sample demonstrates the use of the \helpref{wxScrolledWindow}{wxscrolledwindow} +class including placing subwindows into it and drawing simple graphics. It uses the +\helpref{SetTargetWindow}{wxscrolledwindowsettargetwindow} method and thus the effect +of scrolling does not show in the scrolled window itself, but in one of its subwindows. + +Additionally, this samples demonstrates how to optimize drawing operations in wxWindows, +in particular using the \helpref{wxWindow::IsExposed}{wxwindowisexposed} method with +the aim to prevent unnecessary drawing in the window and thus reducing or removing +flicker on screen. + \subsection{Font sample}\label{samplefont} The font sample demonstrates \helpref{wxFont}{wxfont}, diff --git a/samples/scrollsub/scrollsub.cpp b/samples/scrollsub/scrollsub.cpp index b39a9afb9d..954eb7e5cc 100644 --- a/samples/scrollsub/scrollsub.cpp +++ b/samples/scrollsub/scrollsub.cpp @@ -154,8 +154,8 @@ MyCanvas::MyCanvas( wxScrolledWindow *parent, wxWindowID id, { m_owner = parent; -// (void)new wxButton( this, -1, "Hallo I", wxPoint(0,50), wxSize(100,25) ); -// (void)new wxButton( this, -1, "Hallo II", wxPoint(200,50), wxSize(100,25) ); + (void)new wxButton( this, -1, "Hallo I", wxPoint(0,50), wxSize(100,25) ); + (void)new wxButton( this, -1, "Hallo II", wxPoint(200,50), wxSize(100,25) ); SetBackgroundColour( *wxWHITE ); -- 2.45.2