home *** CD-ROM | disk | FTP | other *** search
- DLGBLD.VBX: This is a demo of the DialogBuilder custom control
-
- I would like to introduce to you the DialogBuilder custom control and our
- technique of dynamic control creation and manipulation.
-
- 1. demo instructions
-
- - open a new VB project.
- - add the DialogBuilder control to the toolbox.
- - draw one instance of the control on the (empty) form.
- - put the control in the upper left corner of the form and size it to
- a width of about 3000 twips and a height of about 500 twips.
- - a right double click on the control (or access of the 'BuildDialog'
- property) opens the 'field select dialog'. The first time, this is a
- little slow, because the control 'learns' the toolbox contents.
- - select the fields you want to put on the form (I hope this is straight
- forward). At the first time you could e.g. select 'ATTRIB1' to ATTRIB5'
- with labels on the left side (or just all fields). Just play a little
- with the listboxes (using double clicks and the diverse buttons).
- - When you close the dialog with 'OK', the controls will be created. You
- will see the interdependence between the size and position of the Dialog
- Builder control and the placing of the created controls.
- - Now move the DialogBuilder control to another place (below the created
- controls) and add more fields, e.g. add 'STRUCT1' with no labels (draw
- frames !!!). Please notice, that the frame controls act as a container.
- - play further (perhaps you want to place a DialogBuilder control in a
- picture or frame).
- - you should also look at the CtlInfo property. It doesn't do anything in
- the demo, but shows the possible access to control classes and their
- properties (and property types, enum values, ...). This is used in VB/Express
- (s.b.) to store information about controls and their properties in the data
- dictionary.
-
- 2. Remarks
-
- The DialogBuilder custom control is a central part of VB/Express, our
- development tool for Visual Basic database applications. The production version
- takes its information (Projects, Tables, Attributes, Structures, Controls,
- Properties, ... ) from a dictionary database. This gets very valuable in
- large projects with a lot of forms with always the same fields. You store (AND
- CHANGE) field information (size, type, validation and help info, ...) in only
- ONE place. Because all the information is in the data dictionary (in fact the
- DialogBuilder also stores information about the generated forms), it is also
- possible to GENERATE code for TYPE definitions and mask/database access. Please
- note:
-
- - the DialogBuilder works with VB's standard AND with custom controls.
- - You work in VB's design environment and have access to all its techniques.
-
-
- For comments and further information feel free to send mail to (or use the
- MS BASIC forum):
-
-
- Bernd Beekes
- CompuServe Id: 100031,2063
-