ImageEn, unit iemview

TImageEnMView.MouseWheelParams

TImageEnMView.MouseWheelParams


Declaration


property MouseWheelParams: TIEMouseWheelParams;


Description


MouseWheelParams and MouseWheelParamsAlt allow you to customize the behavior of the mouse wheel. MouseWheelParams is used to specify the default mouse wheel behaviour, whereas MouseWheelParamsAlt is used when the Ctrl key is pressed.


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 navigate to the next or previous image
ImageEnMView1.MouseWheelParams.Action := iemwNavigate;

// Explorer like behavior. Mouse wheel scrolls the control and Ctrl + Mouse wheel changes the thumbnail view
ImageEnMView1.MouseWheelParams.Action := iemwVScroll;
ImageEnMView1.MouseWheelParamsAlt.Action := iemwZoomView;


Demo


  Demos\Other\MouseWheel\MouseWheelParams.dpr