trichview.com

trichview.support




Re: hyperlink target as hint


Return to index


Author

Message

Pieter E.

Posted: 04/25/2005 9:36:44


Dear Sergey,


I'd like to add an OnHint to my application using TRichViewEdit (when moving

over hyperlinks). I've tried the sample below of Yoerdes but it doesn't work.

I'm using TRichView v1.9.6.


Could you give me some advise?


Thanks


Pieter E.


Yoerdes <[email protected]> wrote:

>Yoerdes wrote:

>> I'd like to show the target of a hyperlink in RVE as a hint when

>> hovering above it with the hand cursor. How can I achieve this?

>

>I found it. In case it saves somebody's time, here the solution:

>

>

>procedure TForm1.rveRVMouseMove(Sender: TObject; id: Integer);

>begin

>   Application.CancelHint;

>   try

>     if ID > -1 then

>     {if ID = -1 then an AV happens; maybe the GetURL function should

>handle this}

>       rve.Hint := rve.RVData.GetURL(ID);

>   finally

>     Application.ShowHint := TRUE;

>   end;

>end;

>

>Yoerdes

>

>

>

>





Powered by ABC Amber Outlook Express Converter