- #Html sample page download how to
- #Html sample page download code
- #Html sample page download download
This sample shows the calendar control in action. Location: samples/aui subdirectory of your wxWidgets installation or Location: samples/artprov subdirectory of your wxWidgets installation or It also shows how you can use wxArtProvider to get stock bitmaps for use in your application. This sample shows how you can customize the look of standard wxWidgets dialogs by replacing default bitmaps/icons with your own versions. Location: samples/archive subdirectory of your wxWidgets installation or
#Html sample page download how to
This shows how to process ZIP and TAR archives using wxZipOutputStream and wxTarOutputStream This sample shows how you can use wxArchiveClassFactory, wxArchiveOutputStream and wxArchiveInputStream. Location: samples/animate subdirectory of your wxWidgets installation or This sample shows how you can use wxAnimationCtrl control and shows concept of a platform-dependent animation encapsulated in wxAnimation. Location: samples/access subdirectory of your wxWidgets installation or This sample shows how you can use the wxAccessible classes in a simple GUI program.īuild Note: You may need to build the wxWidgets library with wxUSE_ACCESSIBILITY being set to 1 to be able to make it work, please read comments in for more info. Most classes contained in wxWidgets occur in at least one of the samples. In this category you may find the following samples showing the corresponding controls:įinal advice is to do a search in the entire samples directory if you can't find the sample showing the control you are interested in by name. Other, more complicated controls, have their own samples. It is organized in many different source files, one per each control, which makes it easier to study it, and also allows to change various control styles and call its methods interactively. The next most useful sample is Widgets Sample which shows many of wxWidgets controls, such as buttons, text entry zones, list boxes, check boxes, combo boxes etc.
#Html sample page download code
It shows the basic structure of wxWidgets program and is the most commented sample of all - looking at its source code is recommended. There are currently almost 100 different samples as part of wxWidgets: the list in this page is not complete! You should start your tour of wxWidgets with the Minimal Sample which is the wxWidgets version of "Hello, You can also build all the samples at once by doing make samples, but be warned that this might take some time on older and slower machines. Just run make to build the sample in the build directory subdirectory, e.g. the one where you ran configure, and not under the source directory. If you built wxWidgets from source using configure, you may use Makefile in the directory with the same name as the sample directory, but under the build directory, i.e.
Use make -f makefile.unx in the sample directory to build it.
#Html sample page download download
In this case, you may view the samples online at but you need to download the source distribution in order to be able to build them (highly recommended).Īlthough reading the samples code can be very useful, it may not be sufficient and often it is even more useful to experiment by making a small change to a sample and checking how it works when running the sample.īefore being able to run them, you need to be able build the sample you're interested in. If you installed wxWidgets from a binary package, you might not have this directory. When a foobar sample is mentioned below, its sources can be found in samples/foobar directory of your wxWidgets tree. Notice that all wxWidgets samples mentioned here can be found in samples subdirectory of the library distribution.
They also provide some notes about using the samples and what features of wxWidgets are they supposed to test. This overview aims at describing what each sample does/demonstrates to make it easier to find the relevant one if a simple grep through all sources didn't help.
Many aspects of wxWidgets programming can be learned from them, but sometimes it is not simple to just choose the right sample to look at. Arguably the best way to learn wxWidgets is by reading the sources of many samples, or examples, provided with it.