home *** CD-ROM | disk | FTP | other *** search
/ Pegasus Graphics Universe / Pegasus_Graphics_Universe.iso / p11 / labeler / labdata3.txt < prev    next >
Text File  |  1992-08-05  |  10KB  |  133 lines

  1. \JUMP SET_LOGO
  2. \X LABSRL\IF LOGO_ACTV<>'N'\MOVE 'Y' TO LOGO_ACTV\ENDIF\WAIT LIM -1\READ K:LABDATA4.TXT
  3. \X SET_LOGO\ON KEY F10 JUMP REDO_ALL\+
  4. \IF LOGOXLOW<LOWXPRN\MOVE LOWXPRN TO LOGOXLOW\ENDIF\+
  5. \IF LOGOYLOW<LOWYPRN\MOVE LOWYPRN TO LOGOYLOW\ENDIF\+
  6. \MOVE HIGHXPRN TO LOGOXHGH\MOVE HIGHYPRN TO LOGOYHGH\+
  7. \IF LOGOXLOW>=LOGOXHGH\MOVE HIGHXPRN TO LOGOXHGH\ENDIF\+
  8. \IF LOGOYLOW>=LOGOYHGH\MOVE HIGHYPRN TO LOGOYHGH\ENDIF\+
  9. \IF #501>#503\MOVE #503 TO #501\MOVE 'N' TO LOGO_ACTV\ENDIF\IF #502>#504\MOVE #504 TO #502\MOVE 'N' TO LOGO_ACTV\ENDIF
  10. \BLA #320,0,639,#322\LOC #320,0\WID #321 DOTS
  11. You can add a logo or other graphic.  There are several ways you can do this including importing from other programs, or using one of our sample graphics.  To keep the current setting for a graphic, just press <RETURN>.
  12. \"
  13. \IF LOGO_ACTV='Y'
  14. Do you want to use the current graphic in it's current position? (Y to use the current image, N to change it's position or to eliminate it entirely.)
  15. \ELSE
  16. This label does not use a graphic.  Do you want to leave the label without a graphic? (Y to leave image as is, N to add a graphic.)
  17. \ENDIF
  18. \CALLM PR_LBL\ON ERROR JUMP LOGONO\CALLM SHOW_LOGO\X LOGONO\CLEAR ON ERROR
  19. \CURS CRSR_XLOC,10,80,10\MOVE 'Y' TO #200\QUEST #200,1,1\IF #200<>'Y' AND #200<>'N'\BEEP 78,79\JUMP SET_LOGO\ENDIF\IF #200='Y'\JUMP LOGO_OUT\ENDIF
  20. \IF #200='N'\IF LOGO_ACTV='N'\MOVE 'X' TO LOGO_ACTV\MOVE 'Y' TO CHGD_LBL\JUMP REASK5\ENDIF\+
  21. \X HAVEALOGO\IF LOGO_ACTV<>'N'\LOC #320,0\BLA #320,0,639,#322
  22. Do you want a logo for this label? (Y to have a logo, N not to.)
  23. \CURS CRSR_XLOC,10,80,10\MOVE 'Y' TO #200\QUEST #200,1\IF #200<>'Y' AND #200<>'N'\BEEP 78,79\JUMP HAVEALOGO\ENDIF\IF #200='N'\MOVE 'N' TO LOGO_ACTV\MOVE 'Y' TO CHGD_LBL\JUMP LOGO_OUT\ENDIF\+
  24. \X REASK5\LOC #320,0\BLA #320,0,639,#322\HEI 400
  25. There are four ways to add a graphic.
  26. \"
  27. First, you can 'drop in' one of our 'canned' logos like the diskette logo we use for LABELER's labels.
  28. \"
  29. Second, you can use our utility program to display any .PCX-format picture which is in a compatible screen mode.  (This is VGA screen mode #17, 640 dots by 480 dots, 2 colors.)
  30. \"
  31. Third, you can enter a command line which will execute your own image display program.  Your program must be able to leave the image on the screen after it exits, it must display the image in VGA mode 17, and it must be able to fit in available memory.
  32. \"
  33. Fourth, if you use our animation software you can create your logo with it.
  34. \"
  35. There you have it.  Pick a number (1, 2, 3 or 4.)
  36. \IF LABTYPE='3.5"'\CURS CRSR_XLOC+5,19,80,19\ELSE\CURS 42,10,80,10\ENDIF
  37. \IF LABTYPE='3.5"'\LINE 376,44,408,44,1\LINE 376,88,417,88,1\LINE 376,165,410,165,1\LINE 376,253,419,253,1
  38. \ELSE\LINE 0,32,32,32,1\LINE 0,65,41,65,1\LINE 0,98,33,98,1\LINE 0,142,43,142,1\ENDIF
  39. \MOVE '1' TO #200\QUEST #200,1\IF #200<'1' OR #200>'4'\BLA #320,0,639,#322\BEEP 59,99\JUMP REASK5\ENDIF\MOVE 'Y' TO CHGD_LBL\ON KEY F1
  40. \MOVE #200 TO LOGO_FORGN\IF #200='1'\JUMP USE_CANNED\ELSE\IF #200='2'\JUMP USE_SHOW_PCX\ELSE\IF #200='3'\JUMP USE_CMDLN\ELSE\JUMP USE_P11_IMAGE\ENDIF
  41. \X LOGO_OUT\IF LOGO_ACTV<>'Y'\MOVE 'N' TO LOGO_ACTV\ENDIF\JUMP LABSRL
  42. \X LOGOPOSI\LOC #320,0\BLA #320,0,639,#322\WID #321 DOTS\HEI 400 DOTS
  43. Now you should position the logo where you want it to print.  Use the cursor keys or your mouse to move the crosshairs to the upper left edge of the desired position.  You will be able to see what it will look like and change it if you like.
  44. \"
  45. If you are using the keyboard, use the number keys above the QWERTY portion of the keyboard to make the cursor move faster.  Set it back to 1 (above the "Q") to position yourself EXACTLY.  Click any mouse button or press <RETURN> when finished.
  46. \"
  47. NOTE #1: The horizontal axis will be rounded down to the nearest 8-dot boundary.
  48. \"
  49. NOTE #2:  Press the space bar NOW to skip this step and not have a logo at all.
  50. \ON KEY 14624 JUMP NOLOGO
  51. \CALLM PR_LBL\CALLM SHOW_DISKDATA\CALLM SHOW_LABELINFO\CALLM SHOW_COMPANY\CALLM SHOW_LOGO
  52. \IF LABTYPE='3.5"'\MOVE LOWYPRN+100 TO #200\ELSE\MOVE LOWYPRN+10 TO #200\ENDIF
  53. \CLEAR MOUSE\MOUSE L=LOGOXLOW,LOGOYLOW W=LOWXPRN+10,#200,HIGHXPRN-20,HIGHYPRN-20 ROUNDS=-1 FRAME=10,0\+
  54. \MOVE D TO LOGOXLOW\MOVE E TO LOGOYLOW
  55. \CALL DSPL_LBL
  56. \X RELOGO\LOC #320,0\BLA #320,0,639,#322
  57. Are you satisfied with this location or do you wish to reposition the logo image? (Y if satisfied, N if not)
  58. \CURS CRSR_XLOC,4,80,4\MOVE 'Y' TO #200\QUES #200,1\IF #200<>'Y' AND #200<>'N'\BEEP 55,99\JUMP RELOGO\ENDIF\+
  59. \IF #200='N'\JUMP LOGOPOSI\ENDIF
  60. \JUMP LABSRL
  61. \X NOLOGO\CLEAR ON ERRORS\MOVE 'N' TO LOGO_ACTV\CALL DSPL_LBL\JUMP LABSRL
  62. \X REDO_ALL\IF LOGO_ACTV<>'Y'\MOVE 'N' TO LOGO_ACTV\ENDIF\WAIT LIM -1\READ K:LAB_DATA.TXT
  63. \X DSPL_LBL\CALLM PR_LBL\CALLM SHOW_DISKDATA\CALLM SHOW_LABELINFO\CALLM SHOW_COMPANY\ON ERROR JUMP NOLOGO\CALLM SHOW_LOGO\CLEAR ON ERROR\WID #321 DOTS\RETURN
  64. \X USE_CANNED\READ K:LOGOS.PIC\MOVE LOGO_NMBR TO U
  65. \X LOGOCHOOSE\CALLM PR_LBL\FRAME ?\CLEAR SHOW\BLA #320,0,639,#322\LOC #320,0\IF U>A\MOVE A TO U\ENDIF\IF U<1\MOVE 1 TO U\ENDIF
  66. Shown below is the current choice.  To view the next one, press <PG DN>.  To view the previous one, press <PG UP>.  When you find the one you want, press <RETURN>.
  67. \"
  68. Total frames in file, this frame:
  69. \X LOGPICK\IF LABTYPE='3.5"'\CURS 58,5,80,5\ELSE\CURS 8,3,80,3\ENDIF\DISPLAY A,U
  70. \IF LABTYPE='5.25"'\BLA 0,#301,639,412\ENDIF\BLA 376,300,639,479\SHOW 376,300,U\WAIT NOW -1
  71. \IF B=18688 OR B=18745\IF U>1\SUB 1 FROM U\ELSE\MOVE A TO U\ENDIF\IF B=20736 OR B=20787\IF U<A\ADD 1 TO U\ELSE\MOVE 1 TO U\ENDIF
  72. \IF B=7181\MOVE U TO LOGO_NMBR\ELSE\JUMP LOGPICK\ENDIF\JUMP LOGOPOSI
  73. \X USE_SHOW_PCX\BLA #320,0,639,#322\LOC #320,0
  74. Enter the name of the PCX image which you want to display with our PCX-format display utility.  Include all drive, path, etc. information in the standard format.
  75. \"
  76. Example:  D:\PCXPICS\MY-LOGO.PCX
  77. \CURSR CRSR_XLOC,7,80,11\MOVE ' ' TO #200\QUEST #200,70\IF #200=' '\BLA #320,0,639,#322\BEEP 78,91\JUMP USE_SHOW_PCX\ENDIF\CLEAR SCREEN
  78. \BUILD #505= 'SHOW_PCX.EXE ',#200\ON ERROR JUMP BADSHOW\EXEC >(#505)\CLEAR ON ERROR\IF A=-1\JUMP BADSHOW\ELSE\IF A=0 AND C<>0\JUMP BADSHOW\ENDIF
  79. \X ISOLATE_LOGO\SAVE SCREEN\LOC #320,0\BLA #320,0,639,#322\HEI 400
  80. You now must mark the image's upper left and lower right boundaries.  Then you will locate the image in the label.  This process will be automated for future use.
  81. \"
  82. Use your mouse or the cursor arrows to move the cross-hair.  To move the cross-hair quickly when using the keyboard, press the numeric keys above the QWERTY portion of the keyboard.
  83. \"
  84. When you are close to the desired location set the movement to ONE (1) dot by pressing the one above the "Q".
  85. \"
  86. Note:  Piece will be shifted to the nearest 8-dot boundary on the horizontal axis.
  87. \"
  88. Press any key to set the upper left edge.
  89. \"
  90. Press <F2> to re-enter the logo information.
  91. \ON KEY F2 JUMP DROP_OUT\ON KEY F10 JUMP DROP_OUT_BYE
  92. \X WAIT1\WAIT NOW -1\IF F<>0\JUMP WAIT1\ENDIF\ON KEY F2\CLEAR MOUSE\RESTORE SCRE\MOUSE L=LOGO_XLORIG,LOGO_YLORIG\MOVE D TO LOGO_XLORIG\MOVE E TO LOGO_YLORIG
  93. \ON KEY F10 JUMP REDO_ALL\SAVE SCRE\LOC #320,0\BLA #320,0,639,#322
  94. Now just do the same thing to set the lower right boundary.  Press any key to begin...
  95. \X WAIT2\WAIT NOW -1\IF F<>0\JUMP WAIT2\ENDIF\CLEAR MOUSE\RESTORE SCREEN\MOUSE L=LOGO_XHORIG,LOGO_YHORIG\MOVE D TO LOGO_XHORIG\MOVE E TO LOGO_YHORIG
  96. \CLEAR PICS\FRAME LOGO_XLORIG,LOGO_YLORIG,LOGO_XHORIG-LOGO_XLORIG,LOGO_YHORIG-LOGO_YLORIG\MOVE 1 TO LOGO_NMBR
  97. \JUMP LOGOPOSI
  98. \X USE_CMDLN\BLA #320,0,639,#322\LOC #320,0
  99. Enter the command line exactly as you would enter it from DOS, EXCEPT:
  100. \"
  101. Be sure to include the extension, .EXE or .COM, even though from DOS this would be optional.
  102. \"
  103. Note:  Many picture display programs do not leave the image on the screen when they exit.  If you have trouble getting your image to display properly, you may want to consider converting it to .PCX format and then displaying it with our utility program.
  104. \"
  105. Example: E:PCTR.EXE MY-LOGO.GIF
  106. \IF LABTYPE='5.25"'\CURS CRSR_XLOC,8,80,9\LINE 430,10,475,10,1\ELSE\CURS CRSR_XLOC,13,80,15\LINE 545,22,590,22,1\ENDIF
  107. \MOVE #505 TO #200\QUEST #200,70\IF #200=' '\BLA #320,0,639,#322\BEEP 78,61\JUMP USE_CMDLN\ENDIF
  108. \CLEAR SCREEN\MOVE #200 TO #505\CURS 0,25,80,25\WAIT LIM 0\QUES Q,0\WAIT LIM -1\ON ERROR JUMP BADFORGN\EXEC DOS>(#505)\CLEAR ON ERROR\IF A=-1\JUMP BADFORGN\ENDIF\JUMP ISOLATE_LOGO
  109. \X USE_P11_IMAGE\BLA #320,0,639,#322\LOC #320,0
  110. Enter the name of the P11 picture file.  File must ALREADY have been placed in the current directory.  Do not include the extention, which must be .PIC.
  111. \CURSR CRSR_XLOC,4,80,4\MOVE ' ' TO #200\QUEST #200,8\IF #200=' '\BLA #320,0,639,#322\BEEP 78,71\JUMP USE_P11_IMAGE\ENDIF\BUILD #505=#200,'.PIC'
  112. \ON ERROR JUMP BADP11RD\DOT 0,0,1\MOVE 2 TO Z\READ (#505)\CLEAR ON ERROR\DOT 0,0,?\IF A<>1\MOVE A TO Z\JUMP BADP11RD\ENDIF
  113. \MOVE 'Y' TO LOGO_ACTV\MOVE LOGO_NMBR TO U\IF U<1\MOVE 1 TO U\ENDIF\JUMP LOGOCHOOSE
  114. \X BADP11RD\SCREEN 0,0,17\BLA #320,0,639,#322\LOC #320,0\BEEP 129,62\MOVE 'X' TO LOGO_ACTV\CALLM PR_LBL
  115. \IF Z=2
  116. That file was not found in the current directory.
  117. \ELSE
  118. The screen mode for that picture file is wrong (it must be mode 17, 640 by 480 dots, 2 colors.)
  119. \ENDIF
  120. \X BAD_RTN
  121. \"
  122. You'll have to do the logo over!
  123. \WAIT RET -1 "                      PRESS <RETURN> TO CONTINUE..."
  124. \JUMP SET_LOGO
  125. \X BADSHOW\BLA #320,0,639,#322\LOC #320,0
  126. \BLA #320,0,639,#322\LOC #320,0\BEEP 129,52\MOVE 'N' TO LOGO_ACTV\CALLM PR_LBL
  127. There was a problem displaying that image.  Be sure your drive, path, and filename are correct.
  128. \JUMP BAD_RTN
  129. \X BADFORGN\BLA #320,0,639,#322\LOC #320,0
  130. Your program did not run properly.  Be sure you specifed the drive, path, and filename correctly.
  131. \JUMP BAD_RTN\X DROP_OUT\IF LOGO_ACTV='Y'\MOVE 'Y' TO CHGD_LBL\ENDIF\MOVE 'N' TO LOGO_ACTV\ON KEY F2\CLEAR PICS\JUMP SET_LOGO
  132. \X DROP_OUT_BYE\IF LOGO_ACTV='Y'\MOVE 'Y' TO CHGD_LBL\ENDIF\MOVE 'N' TO LOGO_ACTV\ON KEY F2\CLEAR PICS\JUMP REDO_ALL
  133.