trichview.com

trichview.support




About the SaveIni and the DeleteUnusedStyles


Return to index


Author

Message

Slavi Marinov

Posted: 07/27/2002 21:39:50


Hello Sergey,

I tried what you recommended me for deleting unused text styles, but somehow

it doesn't work. I do the following :

0. I have only one text style in RichViewStyle.TextStyles

1. Write a simple text

2. Every time I push a button, a new text style is created and it is

assigned to the text i have written

3. Repeat step 2 a few times.

4. Use the method DeleteUnusedTextStyles


So, I think that after doing this, there should be only one ( or at most

two) fonts left. BUT, none of them is deleted!! And when I use

.SaveIniToFile, I see that all these text styles I have created are in the

ini. So where is the problem? Why doesn't the method work? Also, I can see

the same when I use DeleteTextStyle method. I write


count1 := RichViewStyle.TextStyles.Count;

RichViewStyle.DeleteTextStyle(3);

count2 :=RichViewStyle.TextStyles.Count;


And after executing that, I get count1 = count2. And it shouldn't be so,

right? And all the styles I am trying to remove have been created during the

execution of my program... Where is the problem?


Slavi





Powered by ABC Amber Outlook Express Converter