trichview.com

trichview.support




Understanding Styles


Return to index


Author

Message

Gary

Posted: 01/21/2003 15:24:45


Hi, I'm new to RichView, so please bear with me. I've added a DBRichViewEdit,

assigned a TRVStyle to it, all ok. Then while editing I change the font of

a single word and it appears fine. Then I move to a different record in the

database, and move back. Now the word has lost it's font and has a background

color. So I guess I am using styles incorrectly somehow. I have "Allow adding

Styles dynamically" turned on.


What I would like to achieve is:-

1. I can type whatever I like in each DBRichViewEdit, format using any fonts,

colors etc. Then save it and when I reload it, I'd like it to look as I had

it.

2. To use styles in a similar way to MS Word. So that I can present a predefined

list of styles with all the attributes like font, color etc. These would

only be changed by code, i.e. through a form that I could adjust settings.

I would like to be able to apply these styles to paragraphs, in the same

way as using "Normal", "Heading1" etc. So if I change the "Normal" style

from font size 10 to size 12, that that change would be appplied to my text

as soon as I load it again.


Is this how RichView works? I haven't been able to achieve this yet. But

I like what I see so far.


I've read the help file and it explains a lot very well. But some options

which I'd like to understand are not explained. For example, the RVFOptions,

what effect have the options:-

rvfoConvUnknownStylesToZero

rvfoUseStyleNames


Also, is there an example of using Styles, as used by MS Word? I saw a screenshot

of an editor demo on the site that looked like it did, but none of the demos

I have downloaded show this. Has anyone written a Styles editor like one

of the Action add-ins?


Many thanks

Gary





Powered by ABC Amber Outlook Express Converter