Sign in Join
FPDoc Onlineexperiment

TCustomGrid.OnButtonClick property

Member of TCustomGridprotectedIn unit Grids

Event handler signalled when a button-style cell Editor control is clicked.

Declaration

pascal
property OnButtonClick: TOnSelectEvent read FOnButtonClick write FOnButtonClick;

Description

OnButtonClick is a TOnSelectEvent property with the event handler signalled when the button for a button-style Editor control is clicked. It allows the application to perform actions needed when a mouse up event occurs for a cell using the editor type.

OnButtonClick is signalled (when assigned) from the DoEditButtonClick method. An application must implement and assign a handler routine using the signature in TOnSelectEvent to respond to the event notification. Arguments passed to the event handler include the current grid control, and the Column and Row numbers where the click event occurred.

OnButtonClick is not signalled for mouse click events that occur in the header zone for a column.

OnButtonClick is the replacement for the deprecated OnEditButtonClick event handler.

See also

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