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

TCustomGrid.OnButtonClick

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

Declaration

Source position: grids.pas line 1310

protected property TCustomGrid.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

TCustomGrid.MouseUp

  

Handles a mouse up event for the grid control.

TCustomGrid.OnEditButtonClick

  

Event handler signalled when the button in a cell Editor is clicked. Deprecated.

TOnSelectEvent

  

Specifies an event handler signalled for a selection in a grid control.


Version 3.2 Generated 2024-02-25 Home