TIEGlobalSettings.GridMajorStep
Declaration
property GridMajorStep: integer;
Description
If a value other than zero is specified then every nth grid line will be an inversion of the grid pen color (when
DisplayGridKind is not
iedgNone).
Default: 0
Note: if
GridPen.Mode = pmCopy, then for inverted grid lines it will be pnNotCopy, otherwise inverted grid lines are always set to pmCopy (i.e. the
GridPen.Color will be used)
// Silver grid lines with almost black major grid lines
IEGlobalSettings().MinZoomDisplayGrid := 200;
IEGlobalSettings().GridPen.Color := clSilver;
IEGlobalSettings().GridPen.Mode := pmCopy;
IEGlobalSettings().GridMajorStep := 10;
ImageEnView1.DisplayGridKind := iedgPixelGrid;
ImageEnView1.Update;
// Grid lines are inversion of background color (mode = pmNot), major grid lines are red
IEGlobalSettings().MinZoomDisplayGrid := 200;
IEGlobalSettings().GridPen.Color := clRed;
IEGlobalSettings().GridPen.Mode := pmNot;
IEGlobalSettings().GridMajorStep := 10;
ImageEnView1.DisplayGridKind := iedgPixelGrid;
ImageEnView1.Update;
See Also
◼GridPen◼MinZoomDisplayGrid