home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 18
/
aminetcdnumber181997.iso
/
Aminet
/
dev
/
e
/
EasyGUI_v33b2.lha
/
Src
/
Tools
/
ghost.doc
< prev
next >
Wrap
Text File
|
1996-12-04
|
839b
|
26 lines
ghost.m
-------
A suite of four functions for ghosting (and unghosting) areas in an
Intuition-like way (I think).
Ghosting:
ghost(win:PTR TO window,x,y,xs,ys)
-> Ghosts the specified area of the window (splats dots)
Unghosting:
unghost(gad,win:PTR TO window)
-> Redisplays the indicated gadget
clear(win:PTR TO window,x,y,xs,ys)
-> Clears the specified area of the window
unghost_clear(gad,win:PTR TO window,x,y,xs,ys)
-> Clears the specified area then redisplays gadget
If you're ghosting a gadget then ghost()/unghost() should be sufficient.
If not then try unghost_clear() instead of unghost().
If you're ghosting any other kind of area then use ghost() for ghosting and
redrawing for unghosting. To help with this, you might like to use clear()
and then do your normal redrawing.