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

TCustomGrid.ShowCellHintWindow

Gets and displays the cell hint(s) for the current cell in the grid.

Declaration

Source position: grids.pas line 1172

protected procedure TCustomGrid.ShowCellHintWindow(

  APoint: TPoint

);

Arguments

APoint

  

Screen coordinates for the mouse pointer.

Description

ShowCellHintWindow is a procedure used to gets the value(s) and display cell hint(s) for the cell located at the screen position in APoint. Values in the Options and CellHintPriority properties determine the text available for use as cell hints.

GetCellHintText and GetTruncCellHintText are called to get the corresponding hint text for the options and hint priority. AddToHint is called to apply the derived text to the values displayed in the control using its Hint property. Application.ActivateHint is called to display the hint window.

No actions are performed in the method when ShowHints contains False, when the mouse pointer is not positioned over a grid cell, when EditorMode is True, or at design-time.

See also

TCustomGrid.Options

  

Contains the set of optional features and/or behaviors enabled for the grid.

TCustomGrid.CellHintPriority

  

Identifies how text is combined to form the Hint property.

TCustomGrid.GetCellHintText

  

Gets the hint for the specified cell using the Options enabled in the grid control.

TCustomGrid.GetTruncCellHintText

  

Gets the truncated version of the hint for the cell at the specified position.

TCustomGrid.HideCellHintWindow

  

Cancels the current hint display and restores the saved hint for the grid control.