ImageEn, unit iexRulers




property HorzGripsColor[g: integer]: TColor;


Specifies the brush color of the grip, g, on the horizontal ruler.

Triangular grips showing with default color of light gray:

- The default color of all grips is set by GripColorDefault. Use HorzGripsColor to assign custom colors to specific grips.
- To access the cursor grip (showing the current position of the cursor over the image), use HorzGripsColor[ -1 ]

You can set the pen color with GripPenColor


// Set default color of grips to clSilver, but clRed for grips > 10
ImageEnView1.RulerParams.GripColorDefault := clSilver;
for i := 10 to ImageEnView1.RulerParams.HorzGripsCount - 1 do
  ImageEnView1.RulerParams.HorzGripsColor[ i ] := clRed;

// Set the cursor grip to a red triangle
ImageEnView1.RulerParams.HorzGripsKind[ -1 ] := gkTriangle; // Same as setting CursorGripKind
ImageEnView1.RulerParams.HorzGripsColor[ -1 ] := clRed;

See Also

- GripColorDefault
- VertGripsColor
- GripPenColor
- GripKindDefault
- GripWidth
- GripHeight