Important: The information in this document is obsolete and should not be used for new development.
ClosePoly
To complete the collection of lines that defines your polygon, use theClosePolyprocedure.
PROCEDURE ClosePoly;DESCRIPTION
TheClosePolyprocedure stops collecting line-drawing commands for the currently open polygon and computes thepolyBBoxfield of thePolygonrecord. You should callClosePolyonly once for every call to theOpenPolyfunction.The
ClosePolyprocedure uses theShowPenprocedure, balancing the call to theHidePenprocedure made by theOpenPolyfunction.SPECIAL CONSIDERATIONS
TheClosePolyprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.SEE ALSO
Listing 3-10 on page 3-26 illustrates how to use this procedure when creating a triangle.