home *** CD-ROM | disk | FTP | other *** search
/ TestDrive Super Store 2.3 / TESTDRIVE_2.ISO / realizer / demos / preview / fdevover.rlz < prev    next >
Encoding:
Text File  |  1992-09-30  |  5.4 KB  |  148 lines

  1. '***********************************************************************
  2. '    FDevOver.RLZ
  3. '
  4. '    Copyright ⌐ 1991-1992 Computer Associates International, Inc.
  5. '    All rights reserved.
  6. '
  7. '***********************************************************************
  8.  
  9. IF NOT QVar(RollStart) THEN
  10.     INPUT "Please run Preview.RLZ";
  11.     EXIT PROGRAM
  12. END IF
  13. ' Creating an Application
  14. RollStart("FDevIcon")
  15. FormSetObject(20, _CaptionCenter, "Creating an Application", fontHeading, _Center, 1 pct)
  16. s1 = "Now you'll see how to create your own sample application."
  17. s2 = "There are two ways you can do this:"
  18. FormSetObject(21, _CaptionCenter, s1 + CRLF + s2, fontType, 10 pct, 15 pct, 80 pct, 33 pct)
  19. Delay(title_delay)
  20.  
  21. FormSetObject(100, _Bitmap, "Editor2.BMP", 2 pct, 30 pct)
  22. FormModifyObject(100, _Gray)
  23. s1 = "You can type the program code into an editor"
  24. FormSetObject(101, _CaptionLeft, s1, fontType, QR(100) + fontTypeHt, 36 pct, 60 pct, 20 pct)
  25. Delay(read_delay)
  26.  
  27. FormSetObject(110, _Bitmap, "Tut04.BMP", 17 pct, 55 pct)
  28. FormModifyObject(110, _Gray)
  29. s1 = "Or you can use FormDev, the visual form designer"
  30. FormSetObject(111, _CaptionLeft, s1, fontType, QR(110) + fontTypeHt, 65 pct, 42 pct, 25 pct)
  31.  
  32. IF NOT RollWait(1) THEN
  33.     EXIT MACRO
  34. END IF
  35.  
  36. ' FDev Easy
  37. FormSetObject(20, _CaptionCenter, "Creating programs", fontHeading, _Center, 1 pct)
  38. FormSetObject(21, _CaptionCenter, "FormDev is easy", fontType, _Center, 13 pct)
  39.  
  40. FormSetObject(100, _Bitmap, "Tut03.BMP", 2 pct, 22 pct)
  41. FormModifyObject(100, _Gray)
  42. s1 = "Place them in a form to design the interface.  "
  43. s2 = "You simply select controls from the Tool Palette."
  44. CyanBox(200, fontHilite, _Right, 25 pct, 2, s1, s2)
  45. Delay(read_delay)
  46.  
  47. FormSetObject(101, _Bitmap, "Tut04.BMP", 2 pct, 22 pct)
  48. FormModifyObject(101, _Gray)
  49. s2 = "Place them in a form to design the interface."
  50. CyanBox(210, fontHilite, QL(200), QB(200) + fontHiliteHt\2, 1, s1, s2)
  51. Delay(read_delay)
  52.  
  53. FormSetObject(100, _Bitmap, "Tut05.BMP", 2 pct, 22 pct)
  54. FormModifyObject(100, _Gray)
  55. s2 = "Assign action code to control what happens when the user interacts with the form."
  56. CyanBox(220, fontHilite, QL(200), QB(210) + fontHiliteHt\2, 2, s1, s2)
  57. Delay(read_delay)
  58.  
  59. FormSetObject(101, _Bitmap, "Tut06.BMP", 2 pct, 22 pct)
  60. FormModifyObject(101, _Gray)
  61. s2 = "Have FormDev create the program for you."
  62. CyanBox(230, fontHilite, QL(200), QB(220) + fontHiliteHt\2, 1, s1, s2)
  63. Delay(read_delay)
  64.  
  65. FormSetObject(100, _Bitmap, "Tut40.BMP", 17 pct, 43 pct)
  66. FormModifyObject(100, _Gray)
  67. s2 = "Then you can test and run your program, either from within FormDev or from Realizer itself."
  68. CyanBox(240, fontHilite, QL(200), QB(230) + fontHiliteHt\2, 2, s1, s2)
  69.  
  70. IF NOT RollWait(1) THEN
  71.     EXIT MACRO
  72. END IF
  73.  
  74. ' Parts of FormDev
  75. FormSetObject(20, _CaptionCenter, "Parts of FormDev", fontHeading, _Center, 1 pct)
  76. s1 = "FormDev contains three basic elements:"+Chr$(13)+Chr$(10)+"the form, the menu bar, and the Tool Palette."
  77. FormSetObject(21, _CaptionCenter, s1, fontType, 10 pct, 11 pct, 80 pct, 15 pct)
  78. Delay(title_delay)
  79.  
  80. FormSetObject(100, _Bitmap, "Tut20.BMP", 5 pct, 30 pct)
  81. FormModifyObject(100, _Gray)
  82. Delay(bmp_delay)
  83.  
  84. s1 = "The form is a blank form into which"
  85. s2 = " you place objects such as buttons, checkboxes, and charts."
  86. CyanBox(30, fontHilite, QR(100) + fontHiliteHt\4, QT(100) + (QH(100) - 4*fontHiliteHt)\2, 3, s1, s1 + s2)
  87. Delay(read_delay)
  88. FormModifyObject(31, _Close)
  89. FormModifyObject(30, _Close)
  90.  
  91. s1 = "The menu bar contains commands for editing "
  92. s2 = "the form, such as for setting object attributes, aligning objects, and setting the form's"
  93. s2 = s2 + " background color."
  94. CyanBox(30, fontHilite, QR(100), QT(100) - fontHiliteHt\2, 4, s1, s1 + s2)
  95. Delay(read_delay)
  96. FormModifyObject(31, _Close)
  97. FormModifyObject(30, _Close)
  98.  
  99. s1 = "The tool palette is used to select"
  100. s2 = " which objects to place in the form."
  101. CyanBox(30, fontHilite, QR(100) + fontHiliteHt\4, QB(100) - 3*fontHiliteHt, 2, s2, s1 + s2)
  102.  
  103. IF NOT RollWait(1) THEN
  104.     EXIT MACRO
  105. END IF
  106.  
  107. ' Parts of the Tool Palette
  108. FormSetObject(20, _CaptionCenter, "The Tool Palette", fontHeading, _Center, 1 pct)
  109. s1 = "Use the Tool Palette to select which objects to place in the form."
  110. FormSetObject(21, _CaptionLeft, s1, fontType, _Center, 13 pct)
  111.  
  112. FormSetObject(100, _Bitmap, "Tut30.BMP", 100pct, 100pct)
  113. tp = QT(100)
  114. IF tp - QB(21) > 2 * QH(100) THEN
  115.     FormSetObject(100, _Bitmap, "Tut30.BMP", 100pct, 100pct, 2*QW(100), 2*QH(100))
  116. END IF
  117. FormModifyObject(100, _Gray, _Center, QB(21) + (tp - QB(21) - QH(100))\3)
  118.  
  119. IF NOT RollWait(1) THEN
  120.     EXIT MACRO
  121. END IF
  122.  
  123. ' Starting FormDev
  124. FormSetObject(20, _CaptionCenter, "Starting FormDev", fontHeading, _Center, 1 pct)
  125.  
  126. s1 = "You can start the FormDev Tutorial now, from the Main Menu..."
  127. CyanBox(30, fontHilite, _Left, 15 pct, 1, s1, s1)
  128. Delay(2)
  129.  
  130. FormSetObject(100, _Bitmap, "ProgMgr.BMP", 2 pct, QB(30) + fontTypeHt)
  131. FormModifyObject(100, _Gray)
  132. s1 = "or you can start FormDev later, "
  133. s2 = "from the Program Manager..."
  134. CyanBox(40, fontHilite, QR(100) - QH(100)\2, QT(100) + QH(100)\2, 2, s1, s1 + s2)
  135. Delay(read_delay)
  136.  
  137. s1 = "or you can start Realizer and execute "
  138. s2 = "or run ""FormDev.RLZ"" from Realizer."
  139. CyanBox(50, fontHilite, _Right, QB(100) + fontTypeHt, 2, s1, s1 + s2)
  140. Delay(read_delay)
  141.  
  142. s1 = "You can find more information on "
  143. s2 = "FormDev in the User's Guide."
  144. CyanBox(60, fontHilite, _Left, _Bottom, 2, s1, s1 + s2)
  145.  
  146. IF RollWait(0) THEN
  147. END IF
  148.