Some more samples documented etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
07f5b19a15
commit
cddfbd9f55
@ -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}
|
||||
|
@ -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},
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user