Search found 54 matches

by Vitalii
Sat May 14, 2022 7:45 pm
Forum: Support
Topic: Text lines are wrapped on separate pages (Page Break Action)
Replies: 6
Views: 3919

Re: Text lines are wrapped on separate pages (Page Break Action)

Yes. I typed a long paragraph of text in a few lines. Then I set cursor to the start position and press the button with TrvActionInsertPageBreak. I do not perform any other (special) formatting actions (
by Vitalii
Sat May 14, 2022 3:36 pm
Forum: Support
Topic: Text lines are wrapped on separate pages (Page Break Action)
Replies: 6
Views: 3919

Text lines are wrapped on separate pages (Page Break Action)

Hi,
I have trouble with Page Break action. When I apply it, text lines are wrapped on each next page(s), see screenshot.
Strange, but there is no effect when I checked "Keep lines together" and "Keep with next".
I'm using Style Templates in SRichViewEdit.

Please help)
by Vitalii
Sun May 01, 2022 10:08 pm
Forum: Support
Topic: StyleTemplates for Header/Footer using [rvfoSaveStyleTemplatesOnlyNames] option
Replies: 3
Views: 2670

StyleTemplates for Header/Footer using [rvfoSaveStyleTemplatesOnlyNames] option

Greetings! Question about working with TSRichViewEdit and StyleTemplates. I use the [rvfoSaveStyleTemplatesOnlyNames] option and load the styles from a file. For the main editor (SRV.RichViewEdit), the styles are saved and loaded fine, but not for the Header/Footer. When I open a section for editing...
by Vitalii
Tue Feb 22, 2022 9:44 am
Forum: Support
Topic: How to disable "auto-scrolling" in TSRichViewEdit?
Replies: 3
Views: 2855

Re: How to disable "auto-scrolling" in TSRichViewEdit?

Can you give me step-by-step instructions how to reproduce this problem? Yes, it's very simple. There is a test program in the archive. What we need to do: 1) run the program 2) add equation 3) double-click on the equation, close the editor 4) move cursor down to the bottom (no clicks) 5) move curs...
by Vitalii
Mon Feb 21, 2022 2:38 pm
Forum: Support
Topic: How to disable "auto-scrolling" in TSRichViewEdit?
Replies: 3
Views: 2855

How to disable "auto-scrolling" in TSRichViewEdit?

Hi everyone! Is it possible to disable automatic scrolling in TSRichViewEdit? Scrolling starts automatically when, for example, I edit a math equation, then close the editor, and simply move the cursor up or down. If then I click in the editor (set focus), scrolling is stopped. I reviewed all topics...
by Vitalii
Wed Feb 02, 2022 12:42 pm
Forum: Support
Topic: Header/footer save the initial state of the Label
Replies: 4
Views: 2911

Re: Header/footer save the initial state of the Label

Hi Sergey,
thanks for your help! SRV.RVFooter.Change is a simple and quick solution.
by Vitalii
Mon Jan 31, 2022 5:38 pm
Forum: Support
Topic: Header/footer save the initial state of the Label
Replies: 4
Views: 2911

Re: Header/footer save the initial state of the Label

In both cases, I change Text property due to change additional "Script" property. The object load/save "Script" property using _ExtraCustomProperty mechanism. TRVScriptEquationItemInfo = class(TRVMathItemInfo) procedure TRVScriptEquationItemInfo.SetScript(const Value: string); be...
by Vitalii
Sun Jan 30, 2022 10:19 pm
Forum: Support
Topic: Header/footer save the initial state of the Label
Replies: 4
Views: 2911

Header/footer save the initial state of the Label

Hi, I have a question. I add a descendant of Label or Math equation to the header/footer (for example, the text "a=10"). After that, I programmatically change the object's text to "a=20", which displays correctly. But when I save the document and reopen it, the text reverts to it...
by Vitalii
Sun Nov 07, 2021 9:12 pm
Forum: Support
Topic: TSRichViewEdit.SelectAll method behavior
Replies: 2
Views: 5421

Re: TSRichViewEdit.SelectAll method behavior

Ok, thanks!
by Vitalii
Thu Oct 14, 2021 4:10 pm
Forum: Support
Topic: TSRichViewEdit.SelectAll method behavior
Replies: 2
Views: 5421

TSRichViewEdit.SelectAll method behavior

Hi,
I think that in the TSRichViewEdit.SelectAll method it is more logical to select the content of ActiveEditor instead of RichViewEdit. Because if you press CTRL+A while editing the header, then not the header is selected, but the main text.
by Vitalii
Sun Jun 28, 2020 6:46 pm
Forum: Support
Topic: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
Replies: 6
Views: 19158

"ini.UpdateFile" code required!

Hi Sergey, method SaveToStreamRVST does not save data in ini file. To save the data, at the end of the operation you need to call the method "ini.UpdateFile": ... try ini.EraseSection(STYLETEMPLATEINISECTION); SaveToINI(ini, STYLETEMPLATEINISECTION); ini.WriteInteger(STYLETEMPLATEINISECTIO...
by Vitalii
Sat Jun 06, 2020 8:32 am
Forum: Support
Topic: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
Replies: 6
Views: 19158

Re: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST

Thank you, Sergey!
>> I did not know that TMemIniFile can be linked to a stream. I checked, this feature was added in RAD Studio 10.3
work correctly with 10.2, don’t know for earlier versions
by Vitalii
Tue May 12, 2020 10:53 pm
Forum: Support
Topic: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
Replies: 6
Views: 19158

TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST

Hi Sergey, can you add something like that in TRVStyleTemplateCollection? function TRVStyleTemplateCollection.SaveToStreamRVST(Stream: TStream; Units: TRVStyleUnits): Boolean; var ini: TMemIniFile; begin Result := False; try ini := TMemIniFile.Create(Stream, TEncoding.UTF8); try ini.EraseSection(STY...