DefStyleName not working?

General TRichView support forum. Please post your questions here
Post Reply
martindholmes
Posts: 131
Joined: Mon Aug 29, 2005 12:03 pm

DefStyleName not working?

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
martindholmes
Posts: 131
Joined: Mon Aug 29, 2005 12:03 pm

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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
Post Reply