ImageEn, unit ieview

TIEMouseWheelParams.Variation

TIEMouseWheelParams.Variation


Declaration

property Variation: TIEMouseWheelParamsVariation;


Description

Specifies how much scrolling or zooming occurs in response to mouse wheel rotation

Value Description
iemwAbsolute Value contains the absolute value to add or subtract from the current value
iemwPercentage Value contains the percentage of variation from the current value

Default: iemwPercentage

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


Examples

// 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;