home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / e / EasyGUI_v33b2.lha / Src / Tools / ghost.doc < prev    next >
Text File  |  1996-12-04  |  839b  |  26 lines

  1. ghost.m
  2. -------
  3. A suite of four functions for ghosting (and unghosting) areas in an
  4. Intuition-like way (I think).
  5.  
  6. Ghosting:
  7.  
  8.     ghost(win:PTR TO window,x,y,xs,ys)
  9.         -> Ghosts the specified area of the window (splats dots)
  10.  
  11. Unghosting:
  12.  
  13.     unghost(gad,win:PTR TO window)
  14.         -> Redisplays the indicated gadget
  15.     clear(win:PTR TO window,x,y,xs,ys)
  16.         -> Clears the specified area of the window
  17.     unghost_clear(gad,win:PTR TO window,x,y,xs,ys)
  18.         -> Clears the specified area then redisplays gadget
  19.  
  20. If you're ghosting a gadget then ghost()/unghost() should be sufficient.
  21. If not then try unghost_clear() instead of unghost().
  22.  
  23. If you're ghosting any other kind of area then use ghost() for ghosting and
  24. redrawing for unghosting.  To help with this, you might like to use clear()
  25. and then do your normal redrawing.
  26.