trichview.com

trichview.support




Re: Hypertext in editor as in read-only mode


Return to index


Author

Message

Costas Stergiou

Posted: 06/03/2005 12:25:15


Hi Sergey,

thanks for your help. The file you attached does the job nicely.

I have also studied the example on how to find where the user clicked on

and it is fine.


Also, the idea of turning on/off the readonly property works very well. Is

there a performance penalty/redraw/reformatting when toggling the read-only

property?


Costas



"Sergey Tkachenko" <svt@trichview.com> wrote:

>> Hi,

>> is it possible to have hyperlink text in editor mode behave like links

>without

>> having to press the CTRL key? (e.g. behaving as in read-only mode).

>

>As for clicking, you can use OnRVMouseDown instead of OnJump.

>But do not rely on ItemNo parameter, use GetItemAt method instead, see the

>example in the help file, it the topic about OnRVMouseDown.

>As for displaying hypertext cursor, include the attached file in your

>project. Unfortunately, it does not work for images.

>

>>

>> Also, is it possible to apply custom formatting (e.g. select some text

and

>> change background or font) in TRichView or in editor while in read-only

>mode?

>> I found examples of how to do this by using ApplyTextStyle but this works

>> only in non-readonly editor.

>

>It's not possible in TRichView, if you mean modifying styles of the selected

>text.

>In TRichViewEdit, you can set ReadOnly to False before making changes and

>restore it after them.

>If you need to change color or font, use ApplyStyleConversion instead of

>ApplyTextStyle, see the demo Demos\Delphi\Editors\Editor 2\

>

>

>

>





Powered by ABC Amber Outlook Express Converter