RTF text and shadow?

General TRichView support forum. Please post your questions here
Post Reply
Invis
Posts: 2
Joined: Sun Apr 09, 2006 2:15 pm

RTF text and shadow?

Post by Invis »

We try to create ms word document that have text with shadow (in font menu checked "with shadow" checkbox). When we open it in richview it have no shadow. If in current version dont't support this, may be this feature will be programing in next version?
We have a registered version of TRichview (Popov VN,invistv).
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, text shadow is not supported.
In the current version, you can implement text shadow using custom drawing event (OnDrawStyleText). There is a way to save and load shadow in RVF file, and save it in RTF.
But it's not possible to read it from RTF.
Invis
Posts: 2
Joined: Sun Apr 09, 2006 2:15 pm

Post by Invis »

Sergey Tkachenko wrote:Yes, text shadow is not supported.
In the current version, you can implement text shadow using custom drawing event (OnDrawStyleText). There is a way to save and load shadow in RVF file, and save it in RTF.
But it's not possible to read it from RTF.
OK, thanks, i try this. onDrawStyleText - is this event in sampes? In next version read shadow directly from RTF will be also impossible?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

http://www.trichview.com/support/files/neweffects.zip shows how to implement additional text effects by creating component inherited from TRVStyle. New properties of text styles can be saved and loaded in RVF format.
For RTF saving, processing OnSaveRTFExtra event is required.
Reading from RTF will be implemented only if shadow will be included in standard TRichView effects.
Post Reply