Hint window next to to a hyperlink

  • 1. I Need to show a special hint window next to a hyperlink when mouse moves over it.

    To do that I need to know the screen coordinates, I have been trying the X and Y coordinates that event onMouseMove returns, but those don't seem to be the appropiate ones.

    Can you please tell me how to calculate those screen coordinates?

    2. I need to move the cursor over a hyperlink when the mouse moves over it.

    How does WPRichText do that?

    Kind regards.

    Carlos Borrero

  • I don't know if WPTools 5 and 6 works equals in this, but in WPTools 5 you should use ScreenToClient, WPRichText.GetLineFromXY and WPRichText.GetPointFromParLin.

    I have done something like this (The poRect will be the Rect for a HintWindow):

    Hope this helps.

    Alessandro Fragnani

  • Julian:

    Thank you for your answer, but I don't know how to solve the problem.

    You advise me to write WPRichText1.GetLineFromXY. Do you mean to copy the procedure that is part of WPTools5, on my program, using WPTools6?

    If the answer is yes, in what file can I find GetLineFromXY? Do I need to write GetPointFromParLin also?

    Kind regards.

    Carlos Borrero