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

TCustomGrid.DialogChar

Applies an accelerator key for a column in the grid.

Declaration

Source position: grids.pas line 998

protected function TCustomGrid.DialogChar(

  var Message: TLMKey

):Boolean; override;

Arguments

Message

  

Lazarus messaged examined in the method.

Description

DialogChar is an overridden Boolean function used to apply Lazarus messages with accelerator keys for columns in the grid. Message contains the TLMKey instance with the message examined in the method. DialogChar examines each of the Columns defined for the grid to determine if the CharCode for the Message is an accelerator key appearing in the title for the column. When a match is found, the HeaderClick method is called to activate the column.

The return value contains the result from the inherited DialogChar method.

See also

TCustomGrid.Columns

  

Definitions for the columns in the grid.

TCustomGrid.ColCount

  

Number of columns in the grid.

TCustomGrid.HeaderClick

  

Performs actions needed when a mouse click occurs in a header for a grid column.

TWinControl.DialogChar

  

Handles the specified key in Message as an accelerator or shortcut key.