delphi - How can I create my own custom Hint for a specific control? -
delphi - How can I create my own custom Hint for a specific control? -
i need create custom hint window (with it's own color , layout) specific command (not entire application)
the hint text not connected specific hint
property control.
as suggested wrote handler cm_hintshow
(this worked if command has showhint=true
):
procedure tmycontrol.cmhintshow(var message: tmessage); begin form1.caption := 'x'; // here display own hint window // inherited; end;
but now, how know when/where hide when hint times out? neither cm_hintshow
or cm_hintshowpause
gives me info.
in cm_hintshow
message handler, can cast lparam
value phintinfo
pointer , customize fields needed. instance, alter background color, set thintinfo.hintcolor
field. alter layout of hint, can derive new class thintwindow
, assign class type thintinfo.hintwindowclass
field.
let vcl manage hint you, including showing , hiding it.
delphi delphi-7
Comments
Post a Comment