trichview.com

trichview.support




Resetting format after inserting Hyperlink


Return to index


Author

Message

Daniel Albuschat

Posted: 03/29/2004 9:56:21


Hello,


    it was quite difficult to find a suitable

subject, but here's my problem, in detail:


If you change the format at the end of the  text -- for example

if you insert a hyperlink -- there's no way of getting the original

(default) format back after you tried to delete the last character of

the hyperlink.

Here's a test case:


Create a new TRichViewEdit and connect a Style and a

TRVAPopupMenu with it. Run the application, choose

"Hypertext link" from the context menu. Insert, for example

google | http://www.google.com

Without hitting any other key, write some text.


This will work fine. Now here come's the problem:


Do the same again, but after inserting the URL, press Backspace

to delete the last character of the text associated to the URL.

If you write some text now, it'll still have the Hyperlink-Formatting.

And I couldn't find a way to get back to normal text again.


Both, MS Word and OpenOffice.org provide a solution to this

problem.


MS Word:        If you hit Backspace right after an hyperlink and then

                 type on, normal text format will be used. To extend the

                 text of the hyperlink, you will have to go `inside' it

                 and delete the last character afterwards.


OpenOffice.org: In OpenOffice.org, behaviour is similar to

                 TRichViewEdit, except that you can press the Right

                 Cursor Key at the end of the text and you'll regain

                 normal text format.


I think Word's behaviour is the more intuitive one.


cu,

    Daniel





Powered by ABC Amber Outlook Express Converter