"Billy Porter" <bi***@xymox.com> wrote in
news:u5**************@TK2MSFTNGP09.phx.gbl:
Thank you so much, thats just what I was looking for!
Just one more thing: Is there any way to get the word that was
clicked on (just like Babylon)? See my former post for more
information.
Billy,
I'm not sure how that's done. I think you would need to get the
current mouse position (System.Windows.Forms.Cursor.Postion), and
then use the Windows API to get the handle of the window at that
position. Using that handle, check if the window is some kind of
text box. If it is, ideally the textbox would have some kind of
method you could query to have it tell you what word (if any) the
mouse cursor is hovering over.
I don't know exactly how Babylon is getting the word under the
cursor, but it is probably a much more complicated process than
what I just described. Here's an opinion from Peter Below, a
highly respected Delphi and Windows API expert, on this very topic:
http://groups.google.com/group/borla...343dabcaf8376c
or
http://tinyurl.com/8fvnh
--
Hope this helps.
Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/