I need to create a custom hint window (with it's own color and layout) for a specific control (not the entire application)
The hint text itself will not be connected to that specific Hint
property control.
As suggested I wrote a handler for CM_HINTSHOW
(This worked if the Control has ShowHint=True
):
procedure TMyControl.CMHintShow(var Message: TMessage);
begin
Form1.caption := 'x';
// Here I will display my own Hint window
// inherited;
end;
But now, how do I know when/where to hide it when the hint times out? neither CM_HINTSHOW
or CM_HINTSHOWPAUSE
gives me this info.