Sign in Join
FPDoc Onlineexperiment

TCustomGrid.MouseButtonAllowed function

Member of TCustomGridprotectedIn unit Grids

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

Declaration

pascal
function 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 in the grid control at design-time. This allows the mouse event to be handled as a context menu on the form design surface.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.