home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 236 / 236.d81 / t.vdot < prev    next >
Encoding:
Text File  |  2004-01-01  |  14.8 KB  |  607 lines

  1. u
  2.                V D O T
  3.     DotBASIC Visual Design Program
  4.                 using
  5.    Mr. Mouse Image Construction Kit
  6.            by Dave Moorman
  7.  
  8.  
  9.     In order to create a program in
  10. DotBASIC, you must first design the
  11. screen. VDOT is where you do that.
  12. Before we get into the nuts and bolts
  13. of VDOT, here is a quick example,
  14. step by step, on how to make a simple
  15. DotBASIC screen.
  16.  
  17.  
  18. 1. Boot VDOT. Press <Shift-RETURN> to
  19. go to Keyboard Mode. Cursor to the
  20. left side of the screen and type
  21.  
  22.                 Howdy
  23.  
  24. Then cursor to the right side of the
  25. screen and type
  26.  
  27.                  Quit
  28.  
  29. Press <F1> to return to Mouse Mode.
  30.  
  31.  
  32. 2. Click EDIT > BOX. Use mouse or
  33. joystick to move the box slightly
  34. above and left of the "H" in "Howdy".
  35. Click. Now move the mouse down and to
  36. the right until the word "Howdy" is
  37. nicely bracked. Click.
  38.  
  39.  
  40. 3. The EDIT menu will appear. Choose
  41. ADD REGION. A dialog box appears
  42. titled "Create Region 1". Answer the
  43. questions:
  44.  
  45.  Line Number: 1000       <RETURN>
  46.  Hotkey:                 <h><RETURN>
  47.  Right Clk (Y/N)         <n>
  48.  Unhighlighted Color:    <1><RETURN>
  49.  Reversed? (Y/N)         <y>
  50.  Highlighted Color:      <7><RETURN>
  51.  Reversed? (Y/N)         <y>
  52.  Is This Right? (Y/N)    <y>
  53.  
  54.  
  55. 4. Repeat 2 - 3 for the word "Quit",
  56. with a Hotkey of <q>, of course.
  57.  
  58.  
  59. 5. If your work disk is on a
  60. different drive, click FILE >
  61. DISK/DIR, then click ON DEVICE and
  62. choose the work disk drive number.
  63. Click EXIT DISK/DIR.
  64.  
  65.  
  66. 6. Click FILE > SAVE. Choose
  67. MEDDLESCREEN.MED. Input the filename
  68. by which you will call this DotBASIC
  69. program. In this case, call it
  70.  
  71.                 howdy
  72.  
  73. Click OK. If you already have a
  74. "howdy.med" file and want to replace
  75. it, click OK again.
  76.  
  77.  
  78.     There! Your MED file is saved. To
  79. complete your first DotBASIC program,
  80. read Getting Started, elsewhere in
  81. this issue.
  82.  
  83.          --------------------
  84.  
  85.     Now that you have had a taste of
  86. how VDOT looks and feels, let's get on
  87. with the many features. You may note
  88. some references within the program to
  89. Mr.MICK -- Mr. Mouse Image
  90. Construction Kit -- published in 1997.
  91. That is because VDOT is an extension
  92. of Mr.MICK.
  93.  
  94.     VDOT sports a built-in font tool
  95. that does nearly everything a font
  96. editor does -- but all right on the
  97. screen where you can see the
  98. interaction of custom characters. In
  99. short, VDOT has everything you need
  100. for dramatic text screen design.
  101. Remember, you can create screens
  102. other than MED screens. The
  103. ToolBoxStash format has the screen
  104. and color information in just 2K of
  105. data. And SuperToolStash can block
  106. together up to 4 TBS screens in one
  107. 8K file.
  108.  
  109.     On boot-up, you will see a Menu
  110. Bar and pointer on a black screen.
  111. This is MOUSE MODE -- and every
  112. function is available on the three
  113. pull-down menus. You can call the
  114. menus with a point and click, or
  115. press:
  116.  
  117.   CONTROL-F for File
  118.   CONTROL-E for Edit
  119.   CONTROL-C for Control.
  120.  
  121.     Note that the functions on the
  122. Control Menu have hot keys listed.
  123. The F-keys are easier than slogging
  124. through the menu:
  125.  
  126.   F1 - Toggle Menu Bar On/Off
  127.   F3 - Toggle Window On/Off
  128.   F5 - Switch Font/Color Windows
  129.   UP ARROW - Window to Top/Bottom
  130.  
  131.     The Menu Bar and Window are non-
  132. destructive, giving you access to the
  133. whole screen. Press F3 and F5 until
  134. you have the Font Window visible on
  135. the screen.
  136.  
  137.     In FontMouse Mode, you can pick
  138. up any visible character with a point
  139. and click, then move it to any place
  140. on the screen and place it with
  141. another click. You can only pick up
  142. characters from the Font display.
  143. Press the right mouse button or F7 to
  144. drop a character without placing it
  145. on the screen.
  146.  
  147.     At the right of the Font display
  148. is the character editor. Point and
  149. click a cell to toggle the pixel. The
  150. cursor keys move the box cursor on
  151. the display to select the current
  152. character.
  153.  
  154.     While the font is visible,
  155. pressing F6 (or Font Edit Control
  156. from the Control Menu) will display a
  157. menu of ten useful character
  158. manipulators. The pointer is trapped
  159. in the Font Control Menu until you
  160. press the right mouse button or F7.
  161. The first nine controls are obvious
  162. and immediate. To Copy one character
  163. to another, first choose the
  164. character to be copied using the
  165. cursor keys. Then click on Copy. The
  166. pointer will jump to the Font display
  167. (and is trapped there). Point to the
  168. character to receive the copy and
  169. click. (To cancel, point at the
  170. character in the box cursor.)
  171.  
  172.  
  173.   COLORMOUSE MODE
  174.   ---------------
  175.  
  176.     Press F5 to switch to the Color
  177. Window. The pointer becomes a "Paint
  178. Bucket." Point and click one for the
  179. colors on the palette to set the
  180. current color. Then simply hold down
  181. the left mouse button (or fire) and
  182. move around to point the characters
  183. on the screen.
  184.  
  185.     To the left of the palette is the
  186. border/background box. Move the
  187. "Bucket" to the far left edge of the
  188. Color Window and click to paint the
  189. border. Point to the center of the
  190. box and click to paint the
  191. background. If the background and
  192. Menu Bar are the same color, press F4
  193. to cycle through menu colors. All
  194. menus and dialog boxes will be in the
  195. Menu Bar color.
  196.  
  197.     VDOT lets you work in any C-64
  198. color mode. With the Color Window
  199. visible, press F2 (or use the Control
  200. Menu <F2 To .... Mode>). You will
  201. cycle through each color mode. In
  202. Extended Background, the background
  203. colors are displayed in four
  204. quadrants. In Multi-Color, the three
  205. background colors are displayed in
  206. three rows.
  207.  
  208.   Note: If the border color is 0-7,
  209. you will not see the extra multi-
  210. colors. Choose colors 8 - 15 and
  211. click the border rim of the color box
  212. to see the two other background
  213. colors in the center of the box. The
  214. three rows WILL respond correctly to
  215. painting even if they do not display
  216. the colors. Just chalk it up to the
  217. nature of our favorite beast!
  218.  
  219.     We have just three other Control
  220. Menu functions left. F8 is a
  221. QuikSave, which you can perform once
  222. an image has been named. The BACK
  223. ARROW cycles you through fonts:
  224.  
  225.      Custom to
  226.      Default Upper Case to
  227.      Default Lower Case.
  228.  
  229.     Check Regions will be discussed
  230. below.
  231.  
  232.  
  233.   TEXT MODE
  234.   ---------
  235.  
  236.     Point and click are nice -- but
  237. the keyboard is better for straight
  238. typing. Use the Control Menu <Shift-
  239. RET: To Text Mode>, or press Shift-
  240. RETURN. The menus are not available
  241. in Text Mode, and the only Function
  242. key functioning is F1. To exit Text
  243. Mode, press Shift-RETURN or F1.
  244.  
  245.   Clue: Remember F1! In a stroke or
  246. two, F1 will get the Menu Bar back on
  247. the screen.
  248.  
  249.     In Text Mode, the keyboard works
  250. almost exactly like the native C-64
  251. screen editor. I have excluded the
  252. irritating line links and bottom
  253. scrolling. Insert and Delete only
  254. affect the cursor row. Set colors and
  255. Reverse On/Off in the normal way. CLR
  256. clears the screen. However, if you
  257. press CLR again, the screen will be
  258. restored to the point where you
  259. entered Text Mode.
  260.  
  261.     F1 or Shift-RETURN returns you to
  262. Mouse Mode.
  263.  
  264.  
  265.   THE MENUS
  266.   ---------
  267.  
  268.  
  269.   File Menu
  270.  
  271.   New -- clears work in progress.
  272.  
  273.   Load --
  274.  
  275.   VDOT will load:
  276.  
  277.   ToolBoxStash   (.TBS)
  278.   MeddleScreen   (.MED)
  279.   SuperToolStash (.STS)
  280.   Font           ( F. )
  281.   Screen         (from 1024)
  282.   Color          (from 55296)
  283.  
  284.     The MeddleScreen (.MED) loads a
  285. font followed by .TBS format data,
  286. followed by Event Region Data. This
  287. is the format required by DotBASIC.
  288. As you can see, the this language's
  289. name went through some changes during
  290. development. At first, I thought I
  291. would call it "Mouse Event Driven
  292. Development Language Experiment" (or,
  293. more narcassisticly, "Moorman's
  294. EDDLE"). However, after using the Dot
  295. Commands, the name DotBASIC became
  296. obvious. By then, VDOT was working
  297. with the .MED extension and I decided
  298. not to change it.
  299.  
  300.     SuperToolStash is a group of one
  301. to four .TBS images in one file --
  302. particularly handy for bringing
  303. several images into a program with a
  304. single bload. The .STS file fits
  305. nicely at page 160 or 224 under ROM.
  306.  
  307.     Screen and Color files have been
  308. included to bring data in from less
  309. sophisticated programs.
  310.  
  311.  
  312.   SAVE
  313.  
  314.   Choose the file-type:
  315.  
  316.   F.   Font
  317.   .TBS  ToolBoxStash
  318.   .MED  MeddleScreen (aka DotBASIC)
  319.   .STS  SuperToolStash
  320.  
  321.     Next input the filename and
  322. confirm. See below in Put/Get Image
  323. about saving .STS files.
  324.  
  325.  
  326.   QUIKSAVE
  327.  
  328.     Once a .TBS or .FTS file is
  329. saved, the filename is embedded in
  330. the data. QuikSave saves the .TBS
  331. file to the same filename with auto-
  332. replace. F8 will do a QuikSave in one
  333. keystroke.
  334.  
  335.  
  336.   PUT/GET IMAGE
  337.  
  338.     MR.MICK has four buffers to hold
  339. .TBS images, which can be saved
  340. together as an .STS file. If the
  341. image has no name, Put will ask you
  342. for one. The image names are listed
  343. on the Buffer Menu -- making swapping
  344. between images extremely easy.
  345.  
  346.     When you save the .STS buffer,
  347. you are asked which images to save.
  348. The file will contain images down to
  349. the one you choose. Only the images
  350. saved will load. For instance, if you
  351. saved images 1 and 2, you can later
  352. load them on top of 1, 2, 3, and 4,
  353. replacing only the first two images.
  354. This way, you can easily shuffle
  355. around between images.
  356.  
  357.  
  358.   PUT/GET FONT BUFFER
  359.  
  360.     Have you ever wished you could
  361. copy portions of a great font to
  362. another font file?  MR.MICK allows
  363. you to Put 32 characters in one font
  364. display row into a buffer, then Get
  365. the buffer into any 32 character row.
  366. When you choose Put Font Buffer, the
  367. Font Window appears, with the box
  368. cursor at the beginning of a row. Use
  369. the Up/Down cursor key to choose the
  370. row to Put in the buffer. Press
  371. RETURN to select. Shift-RETURN exits.
  372.  
  373.     Get Font Buffer works the same
  374. way. Up/Down cursor and RETURN to
  375. choose the row to which the buffer
  376. will be copied. I have included a
  377. dialog window just to be safe.
  378.  
  379.  
  380.   PRINT SCREEN
  381.  
  382.     This is one uncorrected remnant
  383. from Mr.MICK. To have room for the
  384. Event Region commands, I had to
  385. remove the Print Screen funtions,
  386. but, alas, I forgot to get rid of the
  387. menu item. Do [NOT] use it.
  388.  
  389.  
  390.   EXIT MR.MICK
  391.  
  392.     This is the only proper way to
  393. get out of MR.MICK (aka VDOT).
  394.  
  395.  
  396.   EDIT MENU
  397.   ---------
  398.  
  399.   Undo
  400.  
  401.     Returns you to the point of the
  402. last F1, F3, F5, or Shift-RETURN key
  403. press (or associated Control Menu
  404. selection.
  405.  
  406.  
  407.   BOX
  408.  
  409.     The rest of the functions in the
  410. Edit Menu will not work until you
  411. have put a Box on the screen. (This
  412. is indicated by a dot before the menu
  413. items). Choose Box, then place the
  414. square pointer at the location of the
  415. upper left corner of the area you
  416. want to box, and click. The four
  417. corners "come apart" and you can mark
  418. any area of the screen. Click again,
  419. and you return to the Edit Menu.
  420. Copy, Cut, and the three Fill
  421. functions are now enabled.
  422.  
  423.  Copy puts the screen and color within
  424.     the box into the copy buffer.
  425.  
  426.  Cut copies, then fills the box area
  427.     with spaces.
  428.  
  429.  R-Cut copies, then fills the box area
  430.     with screen code 160.
  431.  
  432.  Color Fill paints the box area with
  433.     the current paint color. Be sure
  434.     to select the color first.
  435.  
  436.  Text Fill fills the box area with the
  437.     current character in the current
  438.     paint color. Be sure to select
  439.     character and color first.
  440.  
  441.  Text Tile fills the box area by
  442.     alternating the current character
  443.     with the next screen code. Again,
  444.     choose character and color first.
  445.  
  446.  Paste -- After you have copied the
  447.     box area, you can paste the buffer
  448.     anywhere on the screen. Simply
  449.     move the box and click. No part of
  450.     the box can leave the screen.
  451.  
  452.  Add Region -- This will add the box
  453.     area to the Event Region Data and
  454.     let you assign properties to the
  455.     Event Region.
  456.  
  457.     Line Number -- You can use any
  458.       even line number for the Event
  459.       Region. The thousands numbers
  460.       are offered for convenience and
  461.       usually do the trick. Just press
  462.       <RETURN>
  463.  
  464.     Hot Key -- This is the keyboard
  465.       shortcut for the Event Region.
  466.       Any unshifted alphanumeric is
  467.       allowed.
  468.  
  469.     Right Clk -- When you answer Y to
  470.       this item, the Region will have
  471.       a different response for right
  472.       click. The line number is
  473.       automatically assigned, being
  474.       256 larger than the one you
  475.       input above.
  476.  
  477.     Unhighlighted Color -- This is the
  478.       color of the Region when the
  479.       mouse pointer is not over it.
  480.  
  481.     Reversed? -- Press <Y> to reverse
  482.       the Region when unhighlighted.
  483.  
  484.     Highlighted Color -- The color
  485.       when the pointer is pointing to
  486.       the Region.
  487.  
  488.     Reversed? -- Same as above.
  489.  
  490.     Is This Right -- Your chance to go
  491.       back and try again. Press <Y>
  492.       when you are finished.
  493.  
  494.  
  495.   MORE CONTROL MENU
  496.   -----------------
  497.  
  498.     We have covered all the features
  499. of the Control Menu except one: Check
  500. Regions. This function will cycle
  501. through all defined and assigned Event
  502. Regions, showing their location,
  503. color, and hotkey. If the color is
  504. unhighlighted, a frame will appear
  505. around the region. This is just a
  506. quick check to make sure everything is
  507. OK.
  508.  
  509.  
  510.   TECHNO-KUDOS
  511.  
  512.      I began doing visual screen
  513. design by using IMAGE MAKER (LS #106,
  514. by C.E. "Spock" Prince). But that
  515. meant either including Image Writer in
  516. my programs, or converting the results
  517. to ToolBoxStash format.
  518.  
  519.      I happen to like ToolBoxStash.
  520. This is really just a function,
  521. "pioneered" by Jeff Jones and Rick
  522. Nash, found on nearly every toolbox
  523. module -- the ability to stash
  524. screen/color info in some safe memory
  525. location, and restore it at will. A
  526. .TBS file bloads to memory, then can
  527. be called with the restore command.
  528.  
  529.      Imbedded in every TBS and MED
  530. file is data to set the screen's
  531. border and background colors and the
  532. screen mode. To access and use this
  533. information in your own program, use
  534. the following Basic:
  535.  
  536.   SYS <Restore>,<Page>
  537.   POKE 53280,PEEK(2024)
  538.   POKE 53281,PEEK(2025)
  539.   POKE 53282,PEEK(2024)/16
  540.   POKE 53283,PEEK(2025)/16
  541.   POKE 53284,PEEK(2039)
  542.   A=PEEK(2039)AND192
  543.   IFA=0THENPOKE53265,27:POKE53270,200
  544.   IFA=64THENPOKE53265,91:
  545.      POKE53270,200
  546.   IFA=128THENPOKE53265,27:
  547.      POKE53270,216
  548.  
  549.      The filename to which you saved
  550. the image in MR.MICK is also embedded
  551. in this free memory area, beginning
  552. with a 255 at 2026:
  553.  
  554.      2026 255
  555.      2027 "F"
  556.      2028 "I"
  557.      2029 "L"
  558.      2030 "E"
  559.      2031 255
  560.  
  561.   Note the 255 that marks the end of
  562. the filename.
  563.  
  564.     MR.MICK and VDOT (and DotBASIC)
  565. would be impossible without Mr. MOUSE.
  566. Over the years, Lee Novak improved,
  567. honed, and polished Mr. MOUSE into TWO
  568. great driver/ toolboxes.
  569.  
  570.   Mr.MOUSE 3.0 is the tightest,
  571.     fastest, cleanest module ever
  572.     created to the C-64, including
  573.     almost every MM function in just
  574.     4K.
  575.  
  576.   Mr.MOUSE 2.1 is filled to the brim
  577.     with useful ML magic. This is the
  578.     version borrowed and expanded by
  579.     DotBASIC.
  580.  
  581.     If you need to print out your TBS
  582. screens, get a copy of Mr.MICK, which
  583. includes hardcopy capabilities.
  584.  
  585.     Long ago I wrote in the docs for
  586. Mr.MICK:
  587.  
  588.     "Egads! The C-64 is exploding with
  589. new life! Even if you are a purist or
  590. a pauper, and chug along with nothing
  591. but an ugly brown-round keyboard and
  592. unenhanced 1541, the power and
  593. possibilities are expanding
  594. exponentially."
  595.  
  596.     And that was 8 years ago! Whoda
  597. thunk we would have a brand new, hot
  598. off the factory assembly line C-64
  599. that would fit in your pocket (if you
  600. had a tiny keyboard, drive, and
  601. monitor). DotBASIC is the language
  602. that fully takes advantage of the
  603. native capabilities of the C-64!
  604.  
  605.  DMM
  606.  
  607.  
  608.