[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Ensures that the Pen for the canvas is valid, configured, and positioned.
Source position: graphics.pp line 1080
protected procedure TCanvas.CreatePen; virtual; |
CreatePen is a procedure used to create, configure and position the pen for the canvas.
CreatePen calls SelectObject to get the Handle for the Pen, and saves a copy for local access in the class instance. The MoveTo method is called to position the Pen to the coordinates in the PenPos property. Canvas state flags are updated to indicate that the handle for the Pen is valid.
CreatePen is called when RequiredState is used to check for a valid pen handle.
|
The Pen to be used for writing in this canvas. |
|
|
Handle (or device context) for the drawing surface. |
|
|
Ensures that all handles needed for the canvas are valid. |
|
|
A Reference made to this Pen. |
|
|
Represents pen modes used when rendering to a canvas. |
|
|
Represents states values for TCanvas. |
Version 3.2 | Generated 2024-02-25 | Home |