Contents
- Index
- Previous
- Next
OnShowHint event
Applies to
TProfGrid component
Declaration
property OnShowHint: TProfGridShowHintEvent;
Description
Occurs when the grid is about to display the hint window for a help hint.
Write an OnShowHint event handler to change the appearance and behavior of help hints. In the event handler, set the HintStr parameter to change the text of the help hint. Use the CanShow parameter to permit or prevent the help hint from displaying. Use the HintInfo parameter to define the appearance of the help hint window.
Example
procedure TForm1.ProfGrid1ShowHint(Sender: TProfGrid; ACol, ARow: Integer;
var HintStr: String; var CanShow: Boolean; var HintInfo: THintInfo);
begin
if ACol = 1 then
HintInfo.HintColor := clAqua;
end;