home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 November / WPCNOV96.ISO / radio.dxr / 00008_ROTATEVOLUME.ls < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.9 KB  |  37 lines

  1. on ROTATEVOLUME
  2.   global knobvolumeQuartList, ChangeHere, nextchange, knoblocTwoList
  3.   if (the mouseH > getAt(knoblocTwoList, 1)) and (the mouseH < getAt(knoblocTwoList, 2)) and (the mouseV > getAt(knoblocTwoList, 3)) and (the mouseV < getAt(knoblocTwoList, 4)) then
  4.     repeat while (the mouseH > getAt(knoblocTwoList, 1)) and (the mouseH < getAt(knoblocTwoList, 2)) and (the mouseV > getAt(knoblocTwoList, 3)) and (the mouseV < getAt(knoblocTwoList, 4))
  5.       cursor([33, 34])
  6.       repeat with t = 1 to count(knobvolumeQuartList)
  7.         if (the mouseH > getAt(getAt(knobvolumeQuartList, t), 1)) and (the mouseH < getAt(getAt(knobvolumeQuartList, t), 2)) and (the mouseV > getAt(getAt(knobvolumeQuartList, t), 3)) and (the mouseV < getAt(getAt(knobvolumeQuartList, t), 4)) then
  8.           set ChangeHere to t
  9.           repeat while (the mouseH > getAt(getAt(knobvolumeQuartList, t), 1)) and (the mouseH < getAt(getAt(knobvolumeQuartList, t), 2)) and (the mouseV > getAt(getAt(knobvolumeQuartList, t), 3)) and (the mouseV < getAt(getAt(knobvolumeQuartList, t), 4))
  10.             if ChangeHere <> nextchange then
  11.               if ((ChangeHere = 1) and (nextchange = 4)) or (ChangeHere > nextchange) then
  12.                 if (ChangeHere = 4) and (nextchange = 1) then
  13.                   SelectAntiClockWISE(5)
  14.                 else
  15.                   SelectClockWISE(5)
  16.                 end if
  17.               else
  18.                 if ((ChangeHere = 4) and (nextchange = 1)) or (ChangeHere < nextchange) then
  19.                   if (ChangeHere = 1) and (nextchange = 4) then
  20.                     SelectClockWISE(5)
  21.                   else
  22.                     SelectAntiClockWISE(5)
  23.                   end if
  24.                 end if
  25.               end if
  26.               next repeat
  27.             end if
  28.             set nextchange to ChangeHere
  29.           end repeat
  30.           set nextchange to ChangeHere
  31.         end if
  32.       end repeat
  33.     end repeat
  34.     cursor(-1)
  35.   end if
  36. end
  37.