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

TCustomGrid.AllowOutboundEvents

AllowOutboundEvents - permits mouse click on an imaginary (out-of-bounds) cell; moves cursor to nearest valid cell

Declaration

Source position: grids.pas line 987

protected property TCustomGrid.AllowOutboundEvents: Boolean
  read FAllowOutboundEvents
  write FAllowOutboundEvents
  default true;

Description

Normally when a user clicks on a point over the empty space after cells (for example if grid has three rows but user clicks on imaginary fourth row) the current focused cell will move to the nearest cell to clicked point; we call this an outbound event.

Default value is true, as this has been the grid's behaviour since the beginning.

This property was added to simulate Delphi behaviour where outbound events are not available; to enable Delphi compatibility set this property to false.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.