Search found 57 matches

by Vitalii
Sun Sep 22, 2019 7:39 pm
Forum: Support
Topic: Equation font in TfrmRVMathEditor: strange behavior
Replies: 15
Views: 50802

Equation font in TfrmRVMathEditor: strange behavior

Hi, a question about TfrmRVMathEditor. If I get you right, method Init after opening this form sets values of the "Font > Default values" section. But what about values in "Font > This equation" section? If I just set individual properties, then OK — these properties apply to the...
by Vitalii
Sun Sep 08, 2019 11:32 am
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 30848

Re: Update formatting in multiple editors with a single style

Oh, thank you so much, Sergey!
Clear + InsertRVFFromStream that's what I need)
by Vitalii
Sat Sep 07, 2019 7:28 pm
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 30848

Re: Update formatting in multiple editors with a single style

Interesting observation. If I use clipboard, then everything good: copy data from the "old" RVF (with individual styles) and paste it into empty sheet in the "new" document (with common styles). When paste, text correctly refers to existing styles or just a new style is added to ...
by Vitalii
Sat Sep 07, 2019 4:57 pm
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 30848

Re: Update formatting in multiple editors with a single style

It seems that I can’t write a working converter. I successfully collected all the styles from separate RVF files (as you said), but when saving to a common RVST file there are different IDs. In "old" version of our program RVF styles can be at different levels of nesting, maybe this is the...
by Vitalii
Fri Sep 06, 2019 4:44 am
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 30848

Re: Update formatting in multiple editors with a single style

Thanks for the answers, Sergey. Another question. If there are several RVFs saved in the "old" version of the program (each with its own styles), how to assemble a common collection of styles, and then switch all the RVFs (TRichViewEdit) to this common collection in the "new" ver...
by Vitalii
Wed Sep 04, 2019 5:17 pm
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 30848

Re: Update formatting in multiple editors with a single style

Thank you, Sergey, both solutions are interesting in their own way) In this case, another question: does TRVStyle class have methods for working with the stream? Our program file is an ZIP-archive, so we pack all internal data into it using TStream / TMemoryStream. There are no problems with RVF (Sa...
by Vitalii
Tue Sep 03, 2019 9:38 pm
Forum: Support
Topic: Update formatting in multiple editors with a single style
Replies: 10
Views: 30848

Update formatting in multiple editors with a single style

Hi Sergey and others! I have a question / issue about Styles and Style templates. Situation: 1. All editors (TRichViewEdit) is created dynamically in tabs (TTabSheet). 2. A new style (TRVStyle) also created dynamically and associated with correspondent editor. The style is assigned to a common style...
by Vitalii
Fri Jul 05, 2019 5:06 pm
Forum: Support
Topic: How to change spell check dictionary "on-the-fly" without changing UI language?
Replies: 2
Views: 13517

How to change spell check dictionary "on-the-fly" without changing UI language?

Hi, I'm using ASpell component for spell checking. All works fine, but I want to change dictionary "on the fly" — without changing UI language. I'll try to set RVASpell1.DictIndex := 0, 1, 2 (for example), but it's still use dictionary linked to UI language. Maybe I need to call some metho...
by Vitalii
Wed May 01, 2019 6:57 am
Forum: Support
Topic: Performance of TRVMathItemInfo
Replies: 3
Views: 14678

Re: Performance of TRVMathItemInfo

Thanks, great!
by Vitalii
Thu Jan 31, 2019 10:19 pm
Forum: Support
Topic: Performance of TRVMathItemInfo
Replies: 3
Views: 14678

Re: Performance of TRVMathItemInfo

I think I understand what's the matter. A function GetMathFontName in unit RVMathItem performed on every update of item (recreates font list with TMathTable.EnumMathFonts). Experimentally, I comment this code and try to work with single instance of font list (in initialization / finalization section...
by Vitalii
Sat Jan 26, 2019 10:33 am
Forum: Support
Topic: Performance of TRVMathItemInfo
Replies: 3
Views: 14678

Performance of TRVMathItemInfo

Good day! I noticed that TRVMathItemInfo is significantly slower than the other items. I understand that this is an "external" class and speed depends on rendering algorithm, but loading 100 formulas from a file or stream takes about 20 seconds (in TRichViewEdit). I am developing an applic...