TIEMouseWheelParams.Value
Declaration
property Value: integer;
Description
Specifies the Value or percentage of variation.
Setting for Variation | Description |
iemwAbsolute | value is a specific value to zoom (percentage points) or scroll (pixels) the image |
iemwPercentage | value refers to the percentage to increase or decrease the zoom, or the percentage of the window to scroll (e.g. the default of 8 will scroll the window 8% with each mouse wheel click) |
Default: 8
Note:
◼In the case of
TImageEnMView, the height is actually based on a theoretical grid of 12.5 thumbnails high. So if
iemwPercentage is used 8% equates to scrolling one thumbnail per wheel click, whereas 4% would scroll 1/2 a thumbnail
◼Has no effect if
Action is
iemwNavigate
// For iemwVScroll used with iemwPercentage, TImageEnMView assumes a theoretical grid of 12.5 thumbnails high
// So the default of 8% will scroll one thumbnail with each wheel click
// Whereas 16% would scroll the height of two thumbnails
ImageEnMView1.MouseWheelParams.Action := iemwVScroll;
ImageEnMView1.MouseWheelParams.Variation := iemwPercentage;
ImageEnMView1.MouseWheelParams.value := 4; // half a thumbnail
// Mouse wheel will scroll image of TImageEnView by 15% of component height
ImageEnView1.MouseWheelParams.Action := iemwVScroll;
ImageEnView1.MouseWheelParams.Variation := iemwPercentage;
ImageEnView1.MouseWheelParams.value := 15;
// Mouse wheel will scroll image of TImageEnView by 1 pixel
ImageEnView1.MouseWheelParams.Action := iemwVScroll;
ImageEnView1.MouseWheelParams.Variation := iemwAbsolute;
ImageEnView1.MouseWheelParams.value := 1;