Applies to
InkEdit, InkPicture controls
Description
A drawing attribute that specifies the current ink color. The default color is black.
Usage
In a painter
To specify a color for the ink drawn in an InkEdit or InkPicture control:
-
Select a color from the InkColor drop-down list on the Ink page in the Properties view.
In scripts
The InkColor property takes a long value.
This example sets the InkColor property to the long value for magenta for the control ip_1:
ip_1.InkColor = 16711935
This example in the Moved event of a trackbar control sets the InkColor property using the RGB function and the scroll position selected by the user:
ip_1.InkColor = RGB(scrollpos/4, scrollpos/16, scrollpos/64)