Unit 'Grids' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TCustomGrid.MouseButtonAllowed

Indicates if the specified mouse button is a mouse down event used in the control.

Declaration

Source position: grids.pas line 1126

protected function TCustomGrid.MouseButtonAllowed(

  Button: TMouseButton

):Boolean; virtual;

Arguments

Button

  

TMouseButton value examined in the method.

Function result

True if the specified mouse button is valid for the grid control.

Description

Called from the MouseDown method to ignore Right mouse clicks at design-time.