Important: The information in this document is obsolete and should not be used for new development.
ShowPen
To change the ink of a graphics pen from invisible (which means that pen drawing doesn't show on the screen) to visible (so that pen drawing does appear on the screen), you can use theShowPen
procedure.
PROCEDURE ShowPen;DESCRIPTION
TheShowPen
procedure increments thepnVis
field of the current graphics port. For 0 or positive values, pen drawing shows on the screen.For example, if you have used the
HidePen
procedure to decrement thepnVis
field from 0 to -1, you can use theShowPen
procedure to make its value 0 so that QuickDraw resumes drawing on the screen. Subsequent calls toShowPen
incrementpnVis
beyond 0, so every call toShowPen
should be balanced by a call toHidePen
.
ShowPen
is called by the proceduresCloseRgn
(described on page 3-85),ClosePoly
(described on page 3-75), andClosePicture
(described in the chapter "Pictures" in this book).