I'm trying to find a way to use my 2nd form as a hint window for a component (for example a TLabel) in my 1st form.
At the moment, I'm exploring the use of THintWindow
and HintWindowClass
, but it is not possible to directly assign a TForm
to HintWindowClass
. Some examples I've seen so far use a TBitmap
which is then drawn on the THintWindow.Canvas
, which is not bad, but I'd still like to use some kind of integrated automatic mechanism.
Another solution that crossed my mind is to manually implement this functionality using OnMouseEnter
, OnMouseMove
and OnMouseLeave
events of the said Tlabel.
If there actually is a way to "assign" a TForm
to HintWindowClass
, I'd like to ask if anyone can provide a code snippet illustrating this. Thanks.
THintWindow
. You would setForm.Parent := HintWindowContainer; Form.Align := alClient;
– Effects