Important: The information in this document is obsolete and should not be used for new development.
HidePen
To give the graphics pen invisible ink (which means that pen drawing doesn't show on the screen), use theHidePen
procedure.
PROCEDURE HidePen;DESCRIPTION
TheHidePen
procedure decrements thepnVis
field of the current graphics port. ThepnVis
field is initialized to 0 by theOpenPort
procedure. WheneverpnVis
is negative, the pen doesn't draw on the screen. ThepnVis
field keeps track of the number of times the pen has been hidden to compensate for nested calls to theHidePen
andShowPen
routines.Every call to
HidePen
should be balanced by a subsequent call toShowPen
, which is described next.The
HidePen
procedure is called by theOpenRgn
,OpenPicture
, andOpenPoly
routines so that you can create regions, pictures, and polygons without drawing on the screen.