If you use the DT_CALCRECT  param with DrawText,

e.g. DT_LEFT or DT_VCENTER or DT_CALCRECT

Then it doesn't actually draw, it just returns the size TREct you need based
on the width you pass.

So you call it once to get the size you need, adjust your size, then do the
actual draw.

Not sure if the helps in you algorithm, but it's what I use.  This way, you
can adjust the height of your hint window do what you need.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Richard R
Sent: Friday, December 16, 2005 8:51 PM
To: 'Delphi-Talk Discussion List'
Subject: tool tip example and caption help



__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to