home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / editors / hypsh40b.arj / HYPDEVEL.LZH / ZONE.HYP < prev   
Text File  |  1991-04-24  |  3KB  |  167 lines

  1. .REMARK
  2. Build zone menu for graphics
  3.  
  4. .NOTE Selecting zone
  5.  Press a key to display picture
  6.   - when it appears -
  7.  Select the top left by pressing
  8.  RETURN or LEFT mouse button
  9.   - then, after the bell -
  10.  Select the bottom right in the
  11.  same way.
  12. .
  13. .NOTE Run picture
  14.  Press a key to display picture
  15.   - when it appears -
  16.  Select a zone by pressing
  17.  RETURN or LEFT mouse button
  18.  or press a mapped key
  19.  
  20.  The action string will be shown
  21.  for 2 seconds, then the picture
  22.  will be shown again. Press a key
  23.  during the action display to
  24.  cancel the Run Picture script
  25. .
  26.  
  27. .NOTE Zone details
  28.  Key mapping   = '$i'
  29.  Top Left      = $X,$Y
  30.  Bottom Right  = $J,$K
  31.  Action string = $z
  32.  ╔══════════╗  ┌──────────┐
  33.  ║ ~A   OK   ~P~Ko~E ║  │ ~A CANCEL ~PY~Kc~E │
  34.  ╚══════════╝  └──────────┘
  35. .
  36. .NOTE Confirm
  37.      $\
  38.  ╔══════════╗    ┌──────────┐
  39.  ║ ~A  YES   ~P~Ky~E ║    │ ~A   NO   ~PY~Kn~E │
  40.  ╚══════════╝    └──────────┘
  41. .
  42. .SCRIPT SETUP
  43. O#
  44. VBPIC
  45. Vb&C124
  46. VM&R21
  47. vM1;aeO*M1
  48. .
  49. .FRAME Main Menu
  50. .TITLE Graphics selection zones
  51.  
  52. This hyperfile allows you to build a menu of selection zones for
  53. a graphics image file.
  54.  
  55. ~hM~Tw     You have not used direct mouse mode. This is required if you
  56. ~hM     want to set up or run graphic screens. You should NOT use the -m
  57. ~hM     flag on the command line. Just use "hs zone". If you have not  
  58. ~hM     used -m, then you don't have a compatible mouse driver.
  59. ~hM~TW
  60. [i]    ~FInstructions~Ki~E
  61.  
  62. [x]    ~sSelect picture file extension~Psselext~Kx~E        $B
  63.  
  64. [s]    ~sSelect picture~Psselect~Ks~E        $p -> $f
  65.  
  66. [g]    ~sCreate menu for graphic screen~PO*T;screate~Kg~E
  67.  
  68. [t]    ~sCreate menu for text screen~PO*T1;screate~Kt~E
  69.  
  70. [r]    ~sRun picture~Psrunpic~Kr~E
  71.  
  72. [q]    ~AQuit~PQ~Kq~E
  73. .
  74. .SCRIPT select
  75. Vp@d*.$B
  76. Vf
  77. y
  78. .
  79. .SCRIPT selext
  80. VA@mExtensions
  81. jrSETIT
  82. VA?Enter extension (without '.')
  83. abq
  84. LSETIT
  85. VB$A
  86. y
  87. .MENU Extensions
  88. PIC
  89. PCX
  90. PCC
  91. P*
  92. Specify|
  93. .SCRIPT create
  94. vp;auq
  95. Y
  96. LASKNAME
  97. Vf?Filename for menu
  98. vf;juASKNAME
  99. w$f
  100. LSTRT
  101. NSelecting zone
  102. g$p
  103. VX&X;VY&Y
  104. ZB
  105. Zg
  106. VJ&X;VK&Y
  107. g
  108. y#
  109. JHK
  110. LERR
  111. pMapped key must be printable character or space
  112. LHK
  113. Vi&KHit key to map to zone
  114. vi ;jlERR
  115. vi};jgERR
  116. Vz?Enter zone action string
  117. Vx=X+32;Vx&C$x
  118. Vy=Y+32;Vy&C$y
  119. Vj=J+32;Vj&C$j
  120. Vk=K+32;Vk&C$k
  121. Y@NZone details
  122. jrANYMORE
  123. W$i$x$y$j$k$b$z
  124. LANYMORE
  125. Y@NConfirm(Any more zones)
  126. jbSTRT
  127. Vc?Default action
  128. jbCLOSE
  129. W*....$b$c
  130. LCLOSE
  131. w
  132. y
  133. pMenu file created
  134. .
  135. .SCRIPT runpic
  136. vf;jdRUNPIC
  137. LASKNAME
  138. Vf?Filename for menu
  139. vf;juASKNAME
  140. LRUNPIC
  141. NRun picture
  142. LAGAIN
  143. zTG$p
  144. aTg$p
  145. p@F$f[@]
  146. Y&G200
  147. jbAGAIN
  148. g;y
  149. .
  150. .FRAME Instructions
  151. .TITLE How to use this hyperfile
  152.  
  153. First you need to select a picture file to build the selection
  154. menu for. You use the 'select option on the main menu for this.
  155.  
  156. To create selection menus, select the 'create' option from the
  157. main menu. This will ask for a file name for the menu first,
  158. then will ask you to mark the top left and bottom right corners
  159. of each zone, along the key to be mapped to the zone and the
  160. action string to be mapped to the zone.
  161.  
  162. After you have created the menu, you can try out the zone
  163. selections using the 'run' option on the main menu.
  164.  
  165. [m]    ~FMain menu~Km~E
  166. .
  167.