home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / FERRAMEN / DLG_BLD / README < prev   
Encoding:
Text File  |  1992-08-28  |  2.8 KB  |  57 lines

  1. DLGBLD.VBX: This is a demo of the DialogBuilder custom control
  2.  
  3. I would like to introduce to you the DialogBuilder custom control and our
  4. technique of dynamic control creation and manipulation.
  5.  
  6. 1. demo instructions
  7.  
  8. - open a new VB project.
  9. - add the DialogBuilder control to the toolbox.
  10. - draw one instance of the control on the (empty) form.
  11. - put the control in the upper left corner of the form and size it to
  12.   a width of about 3000 twips and a height of about 500 twips.
  13. - a right double click on the control (or access of the 'BuildDialog' 
  14.   property) opens the 'field select dialog'. The first time, this is a
  15.   little slow, because the control 'learns' the toolbox contents.
  16. - select the fields you want to put on the form (I hope this is straight
  17.   forward). At the first time you could e.g. select 'ATTRIB1' to ATTRIB5'
  18.   with labels on the left side (or just all fields). Just play a little
  19.   with the listboxes (using double clicks and the diverse buttons).
  20. - When you close the dialog with 'OK', the controls will be created. You
  21.   will see the interdependence between the size and position of the Dialog
  22.   Builder control and the placing of the created controls.
  23. - Now move the DialogBuilder control to another place (below the created
  24.   controls) and add more fields, e.g. add 'STRUCT1' with no labels (draw 
  25.   frames !!!). Please notice, that the frame controls act as a container.
  26. - play further (perhaps you want to place a DialogBuilder control in a
  27.   picture or frame).
  28. - you should also look at the CtlInfo property. It doesn't do anything in
  29.   the demo, but shows the possible access to control classes and their
  30.   properties (and property types, enum values, ...). This is used in VB/Express
  31.   (s.b.) to store information about controls and their properties in the data
  32.   dictionary.
  33.  
  34. 2. Remarks
  35.  
  36. The DialogBuilder custom control is a central part of VB/Express, our
  37. development tool for Visual Basic database applications. The production version
  38. takes its information (Projects, Tables, Attributes, Structures, Controls, 
  39. Properties, ... ) from a dictionary database. This gets very valuable in
  40. large projects with a lot of forms with always the same fields. You store (AND
  41. CHANGE) field information (size, type, validation and help info, ...) in only
  42. ONE place. Because all the information is in the data dictionary (in fact the
  43. DialogBuilder also stores information about the generated forms), it is also
  44. possible to GENERATE code for TYPE definitions and mask/database access. Please
  45. note:
  46.  
  47. - the DialogBuilder works with VB's standard AND with custom controls.
  48. - You work in VB's design environment and have access to all its techniques.
  49.  
  50.  
  51. For comments and further information feel free to send mail to (or use the
  52. MS BASIC forum):
  53.  
  54.  
  55. Bernd Beekes
  56. CompuServe Id: 100031,2063
  57.