ImageEn, unit rulerbox

TRulerBox.GripsCount

TRulerBox.GripsCount


Declaration

property GripsCount: integer;


Description

Specifies the number of the grips.


Default: 1


Examples

// Add twenty grips
RulerBox1.GripsCount := 20;

// Set default color of grips to clSilver, but clRed for grips > 10
RulerBox1.GripColorDefault := clSilver;
for i := 10 to RulerBox1.GripsCount - 1 do
  RulerBox1.GripsColor[ i ] := clRed;