]>
git.saurik.com Git - wxWidgets.git/blob - docs/doxygen/mainpages/samples.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Samples page of the Doxygen manual
4 // Author: wxWidgets team
5 // RCS-ID: $Id: utilities.h 52634 2008-03-20 13:45:17Z VS $
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
11 @page page_samples Included Samples
13 Probably the best way to learn wxWidgets is by reading the source of some 80+
14 samples provided with it. Many aspects of wxWidgets programming can be learnt
15 from them, but sometimes it is not simple to just choose the right sample to
16 look at. This overview aims at describing what each sample does/demonstrates to
17 make it easier to find the relevant one if a simple grep through all sources
18 didn't help. They also provide some notes about using the samples and what
19 features of wxWidgets are they supposed to test.
21 There are currently more than 80 different samples as part of wxWidgets:
22 the list in this page is not complete!
23 You should start your tour of wxWidgets with the @ref page_samples_minimal
24 which is the wxWidgets version of "Hello, world!".
25 It shows the basic structure of wxWidgets program and is the most commented
26 sample of all - looking at its source code is recommended.
28 The next most useful samples are probably @ref page_samples_widgets and
29 @ref page_samples_controls which show many of wxWidgets native and
30 generic controls, such as buttons, listboxes, checkboxes, comboboxes etc.
32 Other, more complicated controls, have their own samples. In this category you
33 may find the following samples showing the corresponding controls:
35 @li wxCalendarCtrl: @ref page_samples_calendar
36 @li wxListCtrl: @ref page_samples_listctrl
37 @li wxTreeCtrl: @ref page_samples_treectrl
38 @li wxGrid: @ref page_samples_grid
40 Finally, it might be helpful to do a search in the entire sample directory if
41 you can't find the sample showing the control you are interested in by
42 name. Most classes contained in wxWidgets occur in at least one of the samples.
45 The following sample list is generated by executing command
47 ls | egrep '[a-z]+' | egrep '^[a-z]+$' | sed 's/^/@li @sample\{/' | sed 's/$/\}/'
51 TODO: Organize them in a more human-readable way.
96 @li @sample{mediaplayer}
102 @li @sample{nativdlg}
103 @li @sample{notebook}
106 @li @sample{ownerdrw}
109 @li @sample{printing}
113 @li @sample{richtext}
114 @li @sample{sashtest}
116 @li @sample{scrollsub}
121 @li @sample{splitter}
125 @li @sample{taborder}
130 @li @sample{treectrl}
131 @li @sample{typetest}
132 @li @sample{validate}
136 @li @sample{wrapsizer}
141 @todo Write descriptions for the samples who description started with
142 "This sample demonstrates", they are semi-auto generated.
145 @section page_samples_access Accessibility Sample
147 This sample shows how you can use the wxAccessible classes in a
150 @buildwith{wxUSE_ACCESSIBILITY}
154 @section page_samples_animate Animation Sample
156 This sample shows how you can use wxAnimationCtrl
157 control and shows concept of a platform-dependent animation encapsulated
162 @section page_samples_artprov Art Provider Sample
164 This sample shows how you can customize the look of standard
165 wxWidgets dialogs by replacing default bitmaps/icons with your own versions.
166 It also shows how you can use wxArtProvider to
167 get stock bitmaps for use in your application.
171 @section page_samples_aui Advanced User Interface Sample
173 @sampleabout{@ref overview_aui "AUI classes"}
177 @section page_samples_calendar Calendar Sample
179 This sample shows the calendar control in action. It
180 shows how to configure the control (see the different options in the calendar
181 menu) and also how to process the notifications from it.
185 @section page_samples_caret Caret Sample
187 @sampleabout{wxCaret}
191 @section page_samples_collpane Collapsible Pane Sample
193 @sampleabout{wxCollapsiblePane}
197 @section page_samples_combo Combo Sample
199 @sampleabout{wxComboBox\, wxComboCtrl and wxOwnerDrawnComboBox etc}
203 @section page_samples_config Configuration Sample
205 This sample demonstrates the wxConfig classes in a platform
206 independent way, i.e. it uses text based files to store a given configuration under
207 Unix and uses the Registry under Windows.
209 See @ref overview_config for the descriptions of all features of this class.
213 @section page_samples_console Console Program Sample
215 @sampleabout{a console program}
219 @section page_samples_controls Controls Sample
221 The controls sample is the main test program for most simple controls used in
222 wxWidgets. The sample tests their basic functionality, events, placement,
223 modification in terms of colour and font as well as the possibility to change
224 the controls programmatically, such as adding an item to a list box etc. Apart
225 from that, the sample uses a wxNotebook and tests most
226 features of this special control (using bitmap in the tabs, using
227 wxSizer instances and wxLayoutConstraints within notebook pages, advancing pages
228 programmatically and vetoing a page change by intercepting the wxNotebookEvent.
230 The various controls tested are listed here:
250 @section page_samples_dataview wxDataViewCtrl Sample
252 @sampleabout{wxDataViewCtrl}
256 @section page_samples_debugrpt Debug Reporter Sample
258 This sample shows how to use wxDebugReport class to
259 generate a debug report in case of a program crash or otherwise. On start up,
260 it proposes to either crash itself (by dereferencing a NULL pointer) or
261 generate debug report without doing it. Next it initializes the debug report
262 with standard information adding a custom file to it (just a timestamp) and
263 allows to view the information gathered using
264 wxDebugReportPreview.
266 For the report processing part of the sample to work you should make available
267 a Web server accepting form uploads, otherwise
268 wxDebugReportUpload will report an error.
270 @buildwith{wxUSE_DEBUGREPORT, wxUSE_ON_FATAL_EXCEPTION}
274 @section page_samples_dialogs Dialogs Sample
276 This sample shows how to use the common dialogs available from wxWidgets. These
277 dialogs are described in detail in the @ref overview_cmndlg.
281 @section page_samples_dialup Dialup Sample
283 This sample shows the wxDialUpManager
284 class. In the status bar, it displays the information gathered through its
285 interface: in particular, the current connection status (online or offline) and
286 whether the connection is permanent (in which case a string `LAN' appears in
287 the third status bar field - but note that you may be on a LAN not
288 connected to the Internet, in which case you will not see this) or not.
290 Using the menu entries, you may also dial or hang up the line if you have a
291 modem attached and (this only makes sense for Windows) list the available
296 @section page_samples_display Display Sample
298 @sampleabout{wxDisplay}
302 @section page_samples_dnd Drag & Drop Sample
304 This sample shows both clipboard and drag and drop in action. It is quite non
305 trivial and may be safely used as a basis for implementing the clipboard and
306 drag and drop operations in a real-life program.
308 When you run the sample, its screen is split in several parts. On the top,
309 there are two listboxes which show the standard derivations of
314 The middle of the sample window is taken by the log window which shows what is
315 going on (of course, this only works in debug builds) and may be helpful to see
316 the sequence of steps of data transfer.
318 Finally, the last part is used for dragging text from it to either one of the
319 listboxes (only one will accept it) or another application. The last
320 functionality available from the main frame is to paste a bitmap from the
321 clipboard (or, in the case of the Windows version, also a metafile) - it will be
322 shown in a new frame.
324 So far, everything we mentioned was implemented with minimal amount of code
325 using standard wxWidgets classes. The more advanced features are demonstrated
326 if you create a shape frame from the main frame menu. A shape is a geometric
327 object which has a position, size and color. It models some
328 application-specific data in this sample. A shape object supports its own
329 private wxDataFormat which means that you may cut and
330 paste it or drag and drop (between one and the same or different shapes) from
331 one sample instance to another (or the same). However, chances are that no
332 other program supports this format and so shapes can also be rendered as
333 bitmaps which allows them to be pasted/dropped in many other applications
334 (and, under Windows, also as metafiles which are supported by most of Windows
335 programs as well - try Write/Wordpad, for example).
337 Take a look at DnDShapeDataObject class to see how you may use
338 wxDataObject to achieve this.
342 @section page_samples_docview Document/View Sample
344 @sampleabout{@ref overview_docview}
348 @see @sample{docvwmdi}, @sample{mdi}
350 @section page_samples_docvwmdi Document/View MDI Sample
352 @sampleabout{@ref overview_docview in MDI}
354 @see @sample{docview}, @sample{mdi}
358 @section page_samples_dragimag Drag Image Sample
360 @sampleabout{wxDragImage}
364 @section page_samples_drawing Drawing Sample
366 @sampleabout{the drawing ability of wxDC}
370 @section page_samples_editlbox Editable List Box Sample
372 @sampleabout{wxEditableListBox}
376 @section page_samples_erase Erase Event Sample
378 @sampleabout{wxEraseEvent}
382 @section page_samples_event Event Sample
384 This sample demonstrates various features of the wxWidgets events. It
385 shows how to dynamic events and connecting/disconnecting the event handlers
386 during run time by using wxEvtHandler::Connect() and wxEvtHandler::Disconnect(),
387 and also how to use wxWindow::PushEventHandler() and wxWindow::PopEventHandler().
391 @section page_samples_except Exception Sample
393 This very simple sample shows how to use C++ exceptions in wxWidgets programs,
394 i.e. where to catch the exception which may be thrown by the program code. It
395 doesn't do anything very exciting by itself, you need to study its code to
396 understand what goes on.
399 You need to build the library with @c wxUSE_EXCEPTIONS being set to @c 1
400 and compile your code with C++ exceptions support to be able to build this
405 @section page_samples_exec External Program Execution Sample
407 The exec sample demonstrates the wxExecute and
408 wxShell functions. Both of them are used to execute the
409 external programs and the sample shows how to do this synchronously (waiting
410 until the program terminates) or asynchronously (notification will come later).
412 It also shows how to capture the output of the child process in both
413 synchronous and asynchronous cases and how to kill the processes with
414 wxProcess::Kill() and test for their existence with
419 @section page_samples_font Font Sample
421 The font sample demonstrates wxFont,
423 wxFontMapper classes. It allows you to see the fonts
424 available (to wxWidgets) on the computer and shows all characters of the
429 @section page_samples_grid Grid Sample
435 @section page_samples_help Help Sample
437 @sampleabout{wxHelpController}
441 @section page_samples_html HTML Sample
443 Eight HTML samples cover all features of the HTML sub-library.
445 @li @b Test demonstrates how to create wxHtmlWindow
446 and also shows most supported HTML tags.
448 @li @b Widget shows how you can embed ordinary controls or windows within an
449 HTML page. It also nicely explains how to write new tag handlers and extend
450 the library to work with unsupported tags.
452 @li @b About may give you an idea how to write good-looking About boxes.
454 @li @b Zip demonstrates use of virtual file systems in wxHTML. The zip archives
455 handler (ships with wxWidgets) allows you to access HTML pages stored
456 in a compressed archive as if they were ordinary files.
458 @li @b Virtual is yet another virtual file systems demo. This one generates pages at run-time.
459 You may find it useful if you need to display some reports in your application.
461 @li @b Printing explains use of wxHtmlEasyPrinting
462 class which serves as as-simple-as-possible interface for printing HTML
463 documents without much work. In fact, only few function calls are sufficient.
465 @li @b Help and @b Helpview are variations on displaying HTML help
466 (compatible with MS HTML Help Workshop). @e Help shows how to embed
467 wxHtmlHelpController in your application
468 while @e Helpview is a simple tool that only pops up the help window and
469 displays help books given at command line.
473 @section page_samples_htlbox HTML List Box Sample
475 @sampleabout{wxHtmlListBox}
479 @section page_samples_image Image Sample
481 The image sample demonstrates use of the wxImage class
482 and shows how to download images in a variety of formats, currently PNG, GIF,
483 TIFF, JPEG, BMP, PNM and PCX. The top of the sample shows two rectangles, one
484 of which is drawn directly in the window, the other one is drawn into a
485 wxBitmap, converted to a wxImage, saved as a PNG image
486 and then reloaded from the PNG file again so that conversions between wxImage
487 and wxBitmap as well as loading and saving PNG files are tested.
489 At the bottom of the main frame there is a test for using a monochrome bitmap by
490 drawing into a wxMemoryDC. The bitmap is then drawn
491 specifying the foreground and background colours with
492 wxDC::SetTextForeground() and
493 wxDC::SetTextBackground() (on the left). The
494 bitmap is then converted to a wxImage and the foreground colour (black) is
495 replaced with red using wxImage::Replace().
497 This sample also contains the code for testing the image rotation and resizing
498 and using raw bitmap access, see the corresponding menu commands.
502 @section page_samples_internat Internationalization Sample
504 The not very clearly named internat sample demonstrates the wxWidgets
505 internationalization (i18n for short from now on) features. To be more
506 precise, it only shows localization support, i.e. support for translating the
507 program messages into another language while true i18n would also involve
508 changing the other aspects of the programs behaviour.
510 More information about this sample can be found in the @c readme.txt file in
511 its directory. Please also see the @ref overview_i18n.
515 @section page_samples_ipc Connection Sample
517 @sampleabout{wxConnection}
521 @section page_samples_joytest Joystick Sample
523 @sampleabout{wxJoystick}
527 @section page_samples_keyboard Key Event Sample
529 @sampleabout{wxKeyEvent}
533 @section page_samples_layout Layout Sample
535 The layout sample demonstrates the two different layout systems offered
536 by wxWidgets. When starting the program, you will see a frame with some
537 controls and some graphics. The controls will change their size whenever
538 you resize the entire frame and the exact behaviour of the size changes
539 is determined using the wxLayoutConstraints
540 class. See also the overview and the
541 wxIndividualLayoutConstraint
542 class for further information.
544 The menu in this sample offers two more tests, one showing how to use
545 a wxBoxSizer in a simple dialog and the other one
546 showing how to use sizers in connection with a wxNotebook
547 class. See also wxSizer.
551 @section page_samples_listctrl List Control Sample
553 This sample shows the wxListCtrl control. Different modes
554 supported by the control (list, icons, small icons, report) may be chosen from
557 The sample also provides some timings for adding/deleting/sorting a lot of
558 (several thousands) items into the control.
562 @section page_samples_mdi MDI Sample
566 @see @sample{docview}, @sample{docvwmdi}
570 @section page_samples_mediaplayer Mediaplayer Sample
572 This sample demonstrates how to use all the features of
573 wxMediaCtrl and play various types of sound, video,
576 It replaces the old @c dynamic sample.
578 @sampledir{mediaplayer}
580 @section page_samples_memcheck Memory Checking Sample
582 @sampleabout{memory tracing using wxDebugContext}
586 @buildwith{wxUSE_MEMORY_TRACING, wxUSE_DEBUG_CONTEXT}
588 @section page_samples_menu Menu Sample
590 @sampleabout{wxMenu classes}
594 @section page_samples_mfc MFC Sample
596 @sampleabout{how to mix MFC and wxWidgets code}
597 It pops up an initial wxWidgets frame, with a menu item
598 that allows a new MFC window to be created.
600 For build instructions please read IMPORTANT NOTES in @c mfctest.cpp.
606 @section page_samples_minimal Minimal Sample
608 The minimal sample is what most people will know under the term Hello World,
609 i.e. a minimal program that doesn't demonstrate anything apart from what is
610 needed to write a program that will display a "hello" dialog. This is usually
611 a good starting point for learning how to use wxWidgets.
615 @section page_samples_mobile Mobile Sample
617 @todo Figure out what this sample is written for, maybe remove it from samples,
618 since it seems to an incomplete test program (for mobile phone?)
622 @section page_samples_nativdlg Native Windows Dialog Sample
624 @sampleabout{native windows dialog}
630 @section page_samples_notebook Notebook Sample
632 This samples shows wxBookCtrl family of controls.
633 Although initially it was written to demonstrate wxNotebook
634 only, it can now be also used to see wxListbook,
635 wxChoicebook and wxTreebook in action.
636 Test each of the controls, their orientation, images and pages using
637 commands through menu.
641 @section page_samples_oleauto OLE Automation Sample
643 @sampleabout{OLE automation using wxAutomationObject}
649 @section page_samples_opengl OpenGL Sample
651 @sampleabout{wxGLCanvas}
653 @li @b cube Draws only a cube to demonstrate how to write a basic wxWidgets OpenGL program.
654 @li @b isosurf Draws a surface by reading coordinates from a dat file.
655 @li @b penguin Draws a rotatable penguin by reading data from a dxf file.
659 @section page_samples_ownerdrw Owner-drawn Sample
661 @sampleabout{owner-drawn wxMenuItem\, wxCheckList and wxListBox}
663 <!--It's weird that it doesn't need <wx/ownerdrw.h> and class wxOwnerDrawn!-->
667 @section page_samples_popup Popup Transient Window Sample
669 @sampleabout{wxPopupTransientWindow}
673 @section page_samples_power Power Management Sample
675 @sampleabout{wxWidgets power management}
681 @section page_samples_printing Printing Sample
683 @sampleabout{printing}
685 @see @ref overview_printing, @ref overview_unixprinting
687 @buildwith{wxUSE_PRINTING_ARCHITECTURE}
691 @section page_samples_regtest Registry Sample
693 @sampleabout{wxRegKey}
695 <!--Its directory name doesn't seem to be proper.-->
701 @section page_samples_render Render Sample
703 This sample shows how to replace the default wxWidgets
704 renderer and also how to write a shared library
705 (DLL) implementing a renderer and load and unload it during the run-time.
709 @section page_samples_richtext wxRichTextCtrl Sample
711 @sampleabout{wxRichTextCtrl}
715 @section page_samples_sashtest Sash Sample
717 @sampleabout{wxSashWindow classes}
721 @section page_samples_scroll Scroll Window Sample
723 @sampleabout{wxScrolledWindow}
725 @see @sample{scrollsub}
729 @section page_samples_scrollsub Scroll Subwindow Sample
731 This sample demonstrates use of the ::wxScrolledWindow
732 class including placing subwindows into it and drawing simple graphics. It uses the
733 SetTargetWindow method and thus the effect
734 of scrolling does not show in the scrolled window itself, but in one of its subwindows.
736 Additionally, this samples demonstrates how to optimize drawing operations in wxWidgets,
737 in particular using the wxWindow::IsExposed() method with
738 the aim to prevent unnecessary drawing in the window and thus reducing or removing
741 @sampledir{scrollsub}
743 @section page_samples_shaped Shaped Window Sample
745 @sampleabout{how to implement a shaped or transparent window\, and a window showing/hiding with effect}
747 @see wxTopLevelWindow::SetShape(), wxTopLevelWindow::SetTransparent(),
748 wxWindow::ShowWithEffect(), wxWindow::HideWithEffect()
752 @section page_samples_sockets Sockets Sample
754 The sockets sample demonstrates how to use the communication facilities
755 provided by wxSocket. There are two different
756 applications in this sample: a server, which is implemented using a
757 wxSocketServer object, and a client, which
758 is implemented as a wxSocketClient.
760 The server binds to the local address, using TCP port number 3000,
761 sets up an event handler to be notified of incoming connection requests
762 (@b wxSOCKET_CONNECTION events), and sits there, waiting for clients
763 (@e listening, in socket parlance). For each accepted connection,
764 a new wxSocketBase object is created. These
765 socket objects are independent from the server that created them, so
766 they set up their own event handler, and then request to be notified
767 of @b wxSOCKET_INPUT (incoming data) or @b wxSOCKET_LOST
768 (connection closed at the remote end) events. In the sample, the event
769 handler is the same for all connections; to find out which socket the
770 event is addressed to, the GetSocket function
773 Although it might take some time to get used to the event-oriented
774 system upon which wxSocket is built, the benefits are many. See, for
775 example, that the server application, while being single-threaded
776 (and of course without using fork() or ugly select() loops) can handle
777 an arbitrary number of connections.
779 The client starts up unconnected, so you can use the Connect... option
780 to specify the address of the server you are going to connect to (the
781 TCP port number is hard-coded as 3000). Once connected, a number of
782 tests are possible. Currently, three tests are implemented. They show
783 how to use the basic IO calls in wxSocketBase,
784 such as wxSocketBase::Read(), wxSocketBase::Write(),
785 wxSocketBase::ReadMsg() and wxSocketBase::WriteMsg(),
786 and how to set up the correct IO flags depending on what you are going to
787 do. See the comments in the code for more information. Note that because
788 both clients and connection objects in the server set up an event handler
789 to catch @b wxSOCKET_LOST events, each one is immediately notified
790 if the other end closes the connection.
792 There is also a URL test which shows how to use
793 the wxURL class to fetch data from a given URL.
795 The sockets sample is work in progress. Some things to do:
797 @li More tests for basic socket functionality.
798 @li More tests for protocol classes (wxProtocol and its descendants).
799 @li Tests for the recently added (and still in alpha stage) datagram sockets.
800 @li New samples which actually do something useful (suggestions accepted).
804 @section page_samples_sound Sound Sample
806 The @c sound sample shows how to use wxSound for simple
807 audio output (e.g. notifications).
811 @section page_samples_splash Splash Screen Sample
813 @sampleabout{wxSplashScreen}
817 @section page_samples_splitter Splitter Window Sample
819 @sampleabout{wxSplitterWindow}
823 @section page_samples_statbar Status Bar Sample
825 This sample shows how to create and use wxStatusBar. Although most of the
826 samples have a statusbar, they usually only create a default one and only
829 Here you can see how to recreate the statusbar (with possibly different number
830 of fields) and how to use it to show icons/bitmaps and/or put arbitrary
835 @section page_samples_stc wxStyledTextCtrl Sample
837 @sampleabout{wxStyledTextCtrl}
841 @section page_samples_svg SVG Sample
843 @sampleabout{wxSVGFileDC}
847 @section page_samples_taborder Tab Order Sample
849 This sample allows to test keyboard navigation (mostly done using the
850 @c TAB key, hence the sample name) between different controls.
851 It shows the use of wxWindow::MoveBeforeInTabOrder() and
852 MoveAfterInTabOrder() methods to change
853 the default order of the windows in the navigation chain and of
854 wxWindow::Navigate() for moving focus along this
859 @section page_samples_taskbar Task Bar Icon Sample
861 @sampleabout{wxTaskBarIcon}
865 @section page_samples_text Text Sample
867 This sample demonstrates four features: firstly the use and many variants of
868 the wxTextCtrl class (single line, multi line, read only,
869 password, ignoring TAB, ignoring ENTER).
871 Secondly it shows how to intercept a wxKeyEvent in both
872 the raw form using the @c EVT_KEY_UP and @c EVT_KEY_DOWN macros and the
873 higher level from using the @c EVT_CHAR macro. All characters will be logged
874 in a log window at the bottom of the main window. By pressing some of the function
875 keys, you can test some actions in the text ctrl as well as get statistics on the
876 text ctrls, which is useful for testing if these statistics actually are correct.
878 Thirdly, on platforms which support it, the sample will offer to copy text to the
879 wxClipboard and to paste text from it. The GTK version will
880 use the so called PRIMARY SELECTION, which is the pseudo clipboard under X and
881 best known from pasting text to the XTerm program.
883 Last not least: some of the text controls have tooltips and the sample also shows
884 how tooltips can be centrally disabled and their latency controlled.
888 @section page_samples_thread Thread Sample
890 This sample demonstrates use of threads in connection with GUI programs.
891 There are two fundamentally different ways to use threads in GUI programs and
892 either way has to take care of the fact that the GUI library itself usually
893 is not multi-threading safe, i.e. that it might crash if two threads try to
894 access the GUI class simultaneously. One way to prevent that is have a normal
895 GUI program in the main thread and some worker threads which work in the
896 background. In order to make communication between the main thread and the
897 worker threads possible, wxWidgets offers the wxPostEvent
898 function and this sample makes use of this function.
900 The other way to use a so called Mutex (such as those offered in the wxMutex
901 class) that prevent threads from accessing the GUI classes as long as any other
902 thread accesses them. For this, wxWidgets has the wxMutexGuiEnter
903 and wxMutexGuiLeave functions, both of which are
904 used and tested in the sample as well.
906 See also @ref overview_thread and wxThread.
910 @section page_samples_toolbar Tool Bar Sample
912 The toolbar sample shows the wxToolBar class in action.
914 The following things are demonstrated:
916 @li Creating the toolbar using wxToolBar::AddTool() and wxToolBar::AddControl(): see
917 MyApp::InitToolbar() in the sample.
918 @li Using @c EVT_UPDATE_UI handler for automatically enabling/disabling
919 toolbar buttons without having to explicitly call EnableTool. This is done
920 in MyFrame::OnUpdateCopyAndCut().
921 @li Using wxToolBar::DeleteTool() and wxToolBar::InsertTool() to dynamically update the
924 Some buttons in the main toolbar are check buttons, i.e. they stay checked when
925 pressed. On the platforms which support it, the sample also adds a combobox
926 to the toolbar showing how you can use arbitrary controls and not only buttons
929 If you toggle another toolbar in the sample (using @c Ctrl-A) you will also
930 see the radio toolbar buttons in action: the first three buttons form a radio
931 group, i.e. checking any of them automatically unchecks the previously
936 @section page_samples_treectrl wxTreeCtrl Sample
938 This sample demonstrates using the wxTreeCtrl class. Here
939 you may see how to process various notification messages sent by this control
940 and also when they occur (by looking at the messages in the text control in
941 the bottom part of the frame).
943 Adding, inserting and deleting items and branches from the tree as well as
944 sorting (in default alphabetical order as well as in custom one) is
945 demonstrated here as well - try the corresponding menu entries.
949 @section page_samples_typetest Types Sample
951 @sampleabout{wxWidgets types}
953 @todo Rewrite its description ASAP.
957 @section page_samples_validate Validator Sample
959 @sampleabout{wxValidator}
963 @section page_samples_vscroll VScrolled Window Sample
965 @sampleabout{wxVScrolledWindow}
969 @section page_samples_widgets Widgets Sample
971 The widgets sample is the main presentation program for most simple and advanced
972 native controls and complex generic widgets provided by wxWidgets.
973 The sample tests their basic functionality, events, placement, modification
974 in terms of colour and font as well as the possibility to change
975 the controls programmatically, such as adding an item to a list box etc.
976 All widgets are categorized for easy browsing.
980 @section page_samples_wizard Wizard Sample
982 This sample shows the so-called wizard dialog (implemented using
983 wxWizard and related classes). It shows almost all
986 @li Using bitmaps with the wizard and changing them depending on the page
987 shown (notice that wxValidationPage in the sample has a different image from
989 @li Using TransferDataFromWindow
990 to verify that the data entered is correct before passing to the next page
991 (done in wxValidationPage which forces the user to check a checkbox before
993 @li Using more elaborated techniques to allow returning to the previous
994 page, but not continuing to the next one or vice versa (in wxRadioboxPage)
995 @li This (wxRadioboxPage) page also shows how the page may process the
996 @e Cancel button itself instead of relying on the wizard parent to do it.
997 @li Normally, the order of the pages in the wizard is known at compile-time,
998 but sometimes it depends on the user choices: wxCheckboxPage shows how to
999 dynamically decide which page to display next (see also
1004 @section page_samples_wrapsizer wxWrapSizer Sample
1006 @sampleabout{wxWrapSizer}
1008 @sampledir{wrapsizer}
1010 @section page_samples_xrc XRC Sample
1012 @sampleabout{@ref overview_xrc}