home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / e / EasyGUI_v33b2.lha / Docs / tapedeck.doc < prev    next >
Text File  |  1996-12-04  |  2KB  |  53 lines

  1. TapeDeck PLUGIN
  2. ---------------
  3. Consists of play, rewind, fast forward, stop and pause gadgets.  Uses the
  4. 'tapedeck.gadget' which needs to be in the normal place of libs:gadgets/
  5. (usually libs: is also assigned to sys:classes/, and .gadget files should
  6. be stored in the sys:classes/gadgets/ directory).
  7.  
  8. Constructors:
  9.  
  10.     tapedeck(mode=BUT_STOP,paused=FALSE,disabled=FALSE)
  11.         mode     -> The current mode (see below)
  12.         paused   -> Whether the pause button is pressed initially
  13.         disabled -> Whether this gadget is disabled
  14.  
  15. Destructor:
  16.  
  17.     END *must* be called for each NEWed object.
  18.  
  19. Data (should be considered read-only):
  20.  
  21.     OBJECT tapedeck OF plugin
  22.       mode      -> Current mode
  23.       paused    -> Paused or not
  24.       disabled  -> Disabled or enabled
  25.     PRIVATE ...
  26.     ENDOBJECT
  27.  
  28.     The mode is taken from 'gadgets/tapedeck'.  It will be:
  29.       o BUT_PLAY if playing
  30.       o BUT_STOP if stopped
  31.       o BUT_FORWARD if fast forwarding
  32.       o BUT_REWIND if rewinding
  33.  
  34. New methods:
  35.  
  36.     setmode(mode=BUT_STOP)     -> Set the current mode
  37.     setpaused(paused=TRUE)     -> Set paused on or off
  38.     setdisabled(disabled=TRUE) -> Disable/enable the gadget
  39.  
  40. Action functions:
  41.  
  42.     Your action function will be called (or your action value returned by
  43.     easygui()) in the following circumstances:
  44.       o When one of the buttons is pressed
  45.         (mode and paused will reflect the current state)
  46.  
  47. Exceptions:
  48.  
  49.     "tape" will be raised by the constructor if the .gadget file can't be
  50.            opened.
  51.     "tape" will be raised by the render() method if the gadget can't be
  52.            created.
  53.