ImageEn, unit iemview

TImageEnMView.RightGap

TImageEnMView.RightGap


Declaration


property RightGap: integer;


Description


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

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

Default: -1 (i.e. uses the value of LeftGap)


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


- LeftGap
- UpperGap
- BottomGap