> I am in the middle of writting a control to display Unicode.
> I have had to in the end write my own control to do this, which
> is ok, but, I have a question. Is there a way to get some text at
> a point on the screen ? i.e. where the mouse is?
> Its not important, but would be handy if I could.

Usual techinique would be to use GetTextExtentExPointW and create a nice
array of all the offsets of the character glyphs drawn. Then with a suitably
munged mouse or click position you work along until you find the glyph that
matches the position your interested in.

GetTextExtentExPointW is a nice function that can take account of kerning,
fractional glyph sizes and all the other wierdness that can occur when you
do serious Unicode stuff in Windows.

Cheers, Max.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to