[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.DoMouseWheelDown

Handles a mouse wheel down movement for the grid control.

Declaration

Source position: grids.pas line 1037

protected function TCustomGrid.DoMouseWheelDown(

  Shift: TShiftState;

  MousePos: TPoint

):Boolean; override;

Arguments

Shift

  

Shift, Alt, Ctrl modifier for the mouse wheel action.

MousePos

  

TPoint instance with the coordinates for the mouse pointer.

Function result

True if the mouse wheel operation was handled in the method.

Description

DoMouseWheelDown is a an overridden method in TCustomGrid called when the mouse wheel is scrolled downward. It calls the inherited method on entry to signal the OnMouseWheelDown event handler (when assigned). The return value is set to True if the action was handled in OnMouseWheelDown.

If the action is not handled in OnMouseWheelDown, the GridMouseWheel method is called to scroll to the next selectable area in the control using the specified Shift modifier. When Shift contains ssCtrl (Ctrl key), the horizontal position is updated instead of the vertical. The return value is set to True when the action is handled in this manner.

Use MouseWheelOption to specify whether mouse wheel operations are applied to the grid cursor (selection / editing) or the visible area for the control.

See DoMouseWheelUp for the actions performed when the mouse wheel is scrolled in the upward direction.

DoMouseWheelDown is called from the inherited DoMouseWheel method when an OnMouseWheel event handler was not found, or it did not handle the notification.

See also

TCustomGrid.MouseWheelOption

  

Sets the mouse wheel behavior for the grid control.

TCustomGrid.GridMouseWheel

  

Performs actions to apply a mouse wheel message to the grid control.

TCustomGrid.DoMouseWheelUp

  

Handles a mouse wheel up movement for the grid control.

TControl.DoMouseWheelDown

  

Signals the OnMouseWheelDown handler.

TControl.OnMouseWheelDown

  

Event handler signalled for a downward movement of the mouse wheel.

TShiftState


Version 4.0 Generated 2025-05-03 Home