ImageEn, unit iemview

TImageEnMView.LeftGap

TImageEnMView.LeftGap


Declaration

property LeftGap: integer;


Description

Specifies the distance between the thumbnail image and the borders on the left.
If -1 is specified, then LeftGap will use the value of UpperGap.
LeftGap and RightGap are useful to indent the thumbnail when using Checkboxes or Buttons.

Note: Generally you will not need to use LeftGap if you have enabled soft shadows which already include their own spacing.

Default: 0 (but is changed by calls to SetModernStyling)





Example

// Add six pixel gap on all sides of thumbnail
ImageEnMView1.UpperGap  := 6;
ImageEnMView1.BottomGap := -1; // inherit
ImageEnMView1.LeftGap   := -1; // inherit
ImageEnMView1.RightGap  := -1; // inherit

// Add 6 pixel gap on sides and 4 pixels above and below
ImageEnMView1.UpperGap  := 4;
ImageEnMView1.BottomGap := -1; // inherit
ImageEnMView1.LeftGap   := 6;
ImageEnMView1.RightGap  := -1; // inherit

// Add custom gaps on all sides
ImageEnMView1.UpperGap  := 4;
ImageEnMView1.BottomGap := 10;
ImageEnMView1.LeftGap   := 6;
ImageEnMView1.RightGap  := 5;

// Move image so it does not draw below the checkbox
ImageEnMView1.Checkboxes := iecbAlways;
ImageEnMView1.LeftGap    := 20;
ImageEnMView1.RightGap   := 6;


See Also

RightGap
UpperGap
BottomGap
HorizBorder
VertBorder
OuterMargin