Venster

Index

Howto: create dialogs with Venster

This Howto shows how to create and use dialogs from a (resource) DLL with Venster. At the moment an external resource compiler/dialog editor is required.
In this Howto we will use VisualC++ 6.0 to create a resource dll (see folder 'test/resdll' for an example resource dll)
The file 'test/test_dialog.py' contains an example of the following procedure:

  1. Create a resource only DLL project with Visual C++, instructions can be found at MSDN

  2. Use visual studio to draw/design a dialog.

  3. Create a new python class derived from 'wtl.Dialog'

  4. Override 'OnInitDialog' to obtain references to the controls in your dialog

  5. Implement Command Handlers to perform actions in the dialog