home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_1 / ASIZE / AUTOSIZE.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-03-15  |  6.0 KB  |  117 lines

  1. Autosize
  2. Autosize
  3. Form1%
  4. frmEd
  5. frmEd
  6. @    cmd_Click
  7. Index[
  8. Autosize
  9. DrawForm
  10. Result
  11. SetTextAlign
  12.     TA_BOTTOMO
  13. TA_RIGHT
  14. SetFont
  15. Height
  16. TextOut
  17. @    Form_Load
  18. Screen
  19. MousePointer
  20. Init_Measures
  21. MakeForm
  22. @    PrimeCtls
  23. Visible
  24. TheLft
  25. gHStd
  26. TheTop
  27. gVStd
  28. frmEd
  29. Caption
  30. TheWth
  31. TheHgt
  32. width
  33. gTwpsPerPxlY
  34. gTwpsPerPxlXV
  35. Cancel
  36. Default
  37. TabIndex
  38. frmWth?
  39. gSysMet
  40. wthFrameb
  41. frmHgt
  42.     hgtCapBar
  43. hgtFrame
  44. frmLft
  45. frmTop
  46. Value
  47.     ListIndex
  48. cbo_Change
  49. frmEd_DragDrop
  50. Source
  51. cmd_Click
  52. DrawForm
  53. ---Set textout alignment...o
  54. ---Label 1...
  55. Name: 
  56. ---Label 2...
  57. Address: 
  58. ---Label 3...
  59. City, State & Zip: 
  60. ---Label 4...
  61. Division: 
  62. ---Label 5...
  63. Department: 
  64. Form_Load
  65. MakeForm
  66.   Size & Position your controls.  Start in the upper
  67.   left of your form and work your way to the lower right.s
  68.   Create 2 additional Text boxes...-
  69.   Move the highest textbox...-
  70.   The left position of the textboxes will be the
  71.   width of the widest label printed on the formt
  72.   PLUS 2 Std character widths.  Its' top will be 2
  73.   Std character heights from the top of the form.
  74. City, State & Zip: 
  75. ---Move is MUCH faster than setting the LEFT, TOP, WIDTH & HEIGHT properties.
  76.   Align the second textbox under the first...-
  77.   Align the third textbox under the second...-
  78.   Align the combo box under the last textbox...-
  79.   Align the listbox under the combo box...
  80.   Make it 4 lines high.e
  81.   Size & Position option Frame...-
  82.   Align the bottom of the frame with the bottom of
  83.   the listbox.  Put it 2 std character widths from
  84.   the right of the listbox.d
  85. Education
  86.   Option buttons...-
  87.   These are positioned relative to the walls of its
  88.   container (frame).  Since the scalemode of a frame
  89.   is always in Twips, we must use our gTwpsPerPxlX
  90.   and gTwpsPerPxlY global variables to multiply by.
  91. ---Load an additional option button, set properties...
  92. College
  93. High School
  94. ---position & Size option buttons...
  95.    Create required Command buttons and position them...
  96. Cancel
  97.   Set Tab Order...
  98.    Size & Position the Form...
  99. ---Make form 2 std H units wider than most right control right side...
  100. ---Make form 2 Std H units taller than lowest control bottom...s
  101. ---Center Form left to right...
  102. ---Center form top to bottom (mostly toward top)...t
  103. ---Do It...
  104. PrimeCtls
  105. ---option button...
  106. ---combo box...n
  107. Aerospace
  108. Automotive
  109. Consumer
  110. Energy
  111. ---listbox...n
  112. Accounting
  113. Advertising
  114. Engineering
  115. Management
  116. Manufacturing
  117.