Page 1 of 1

DefStyleName not working?

Posted: Fri Dec 19, 2008 12:58 pm
by martindholmes
Hi there,

I have the following defined in my TRVStyle:

DefStyleName: п»їп»їп»їStyle_%d

However, when I paste text in with a new style, the style name seems to be set to "Font Style". Has anyone else seen this?

Cheers,
Martin

Posted: Sat Dec 20, 2008 9:05 am
by Sergey Tkachenko
There is no such property in TRVStyle. There is something like this in StyleTemplate collection, but it was not completely implemented yet and has a different meaning.

Posted: Sat Dec 20, 2008 5:18 pm
by martindholmes
That was the one I meant. I had assumed it would control the names given to new styles when they were created. That would be useful.

Cheers,
Martin

Posted: Sun Dec 21, 2008 12:22 pm
by Sergey Tkachenko
You can reassign names in TRichView.OnAddStyle and TRVAControlPanel.OnAddStyle events.
See:
http://trichview.com/help/idh_trichview_onaddstyle.html
http://www.trichview.com/help-actions/t ... dstyle.htm