Page 1 of 1

Hyperlink behavior

Posted: Wed Sep 01, 2010 2:08 pm
by markussamuelsson
Hi,

We have two suggestion for improvements to RichView hyperlinks:

1.
The way hyperlinks behave when the user changes the hyperlink text causes confusion for our end users. I would suggest that the way MS Word handles hyperlink is more intuitive than the RichView approach.

When I write www.google.com in RichView a hyperlink is created. If I later edit this link by just changing the link text to www.yahoo.com, RichView doesn't change the link target. The user who edits the link text most likely doesn't understand it's still referring to the old target. When another user clicks on the link he doesn't end up where he expected to.

When you do the same steps in MS Word, the link target is automatically updated (as long as the link format is valid. If I change the link text to something that is not a valid link address, the link target is not changed). The link text and the link target stays synchronized.

The same things apply to file://, mailto: and other protocols.

Is this behavior (the MS Word behavior) something you would consider implementing in RichView. If not, how do we implement it ourselves?

2.
Another feature in MS Word is that a target hint is shown when I hover over the link. This is more convenient than in RichView, where I have to right click to open the hyperlink editor to see the actual link target.
Is this possible to implement in RichView?

Regards,
Markus Samuelsson

Posted: Wed Sep 01, 2010 5:54 pm
by Sergey Tkachenko
The both these features are implemented in Assorted\Hypertext\URLs\ demo.

1) This demo uses OnItemTextEdit event to update the link's tag when its visible text is changed.
2) This demo uses OnItemHint event to display the link target in hint. rvoShowItemHints must be included in Options, and ShowHint must be True.

Posted: Mon Sep 06, 2010 2:55 pm
by markussamuelsson
Thanks for the fast reply!

The suggested solution worked great.