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.
Search found 58 matches
- Thu Oct 14, 2021 4:10 pm
- Forum: Support
- Topic: TSRichViewEdit.SelectAll method behavior
- Replies: 2
- Views: 9253
- Sun Jun 28, 2020 6:46 pm
- Forum: Support
- Topic: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
- Replies: 6
- Views: 25842
"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(STYLETEMPLATEINISECTION ...
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(STYLETEMPLATEINISECTION ...
- Sat Jun 06, 2020 8:32 am
- Forum: Support
- Topic: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
- Replies: 6
- Views: 25842
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
>> 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
- Tue May 12, 2020 10:53 pm
- Forum: Support
- Topic: TRVStyleTemplateCollection : SaveToStreamRVST, LoadFromStreamRVST
- Replies: 6
- Views: 25842
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 ...
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 ...
- Sun Mar 29, 2020 11:33 am
- Forum: Support
- Topic: Problem streaming to/from cells
- Replies: 11
- Views: 48983
Re: Problem streaming to/from cells
I had a similar situation (DrawItemNo = -1). I solved the problem by adding Edit.Format right after SaveRVFToStream.
- Sun Dec 22, 2019 8:07 am
- Forum: Support
- Topic: Borders and table on each page of the document
- Replies: 6
- Views: 29733
Re: Borders and table on each page of the document
Sergey, maybe Header/Footer is the best solution in this case? And draw two vertical lines (left and right, to connect header and footer tables)? But for them to be visible in the document, I need ScaleRichView (not TRichView), right?
- Sat Dec 21, 2019 5:16 pm
- Forum: Support
- Topic: Borders and table on each page of the document
- Replies: 6
- Views: 29733
Re: Borders and table on each page of the document
I also thought about the background with the option "bsTiled". But in this case, the image of the frame (table) needs to be prepared somewhere... Maybe let the user create a table, then make it a bitmap and use this image as a background?
The case with the image instead of the table seems to me ...
The case with the image instead of the table seems to me ...
- Sat Dec 21, 2019 3:36 pm
- Forum: Support
- Topic: Borders and table on each page of the document
- Replies: 6
- Views: 29733
Re: Borders and table on each page of the document
At first I thought that the table is not the best solution... Or is it possible to "rigidly" fix the indentation of the table from the edges of the sheet, for example, 5 mm each? And is it possible to repeat this table on each sheet without copying?
- Sat Dec 21, 2019 1:15 pm
- Forum: Support
- Topic: Borders and table on each page of the document
- Replies: 6
- Views: 29733
Borders and table on each page of the document
Hi there!
I want to ask advice. Our clients often want to see a document with a frame that is made according to a certain rule (standard). The frame can have mini-tables located at the edges of the document (left, right, top, and bottom). Usually, this frame is repeated on all pages or except the ...
I want to ask advice. Our clients often want to see a document with a frame that is made according to a certain rule (standard). The frame can have mini-tables located at the edges of the document (left, right, top, and bottom). Usually, this frame is repeated on all pages or except the ...
- Sat Sep 28, 2019 7:35 pm
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 64142
- Sat Sep 28, 2019 6:50 am
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 64142
Re: Equation font in TfrmRVMathEditor: strange behavior
'Arial' cannot be used as font for equations. Only special math fonts can be used
Yeah, I know that, but the original code in RVMathEditorFrm.pas just confused me)
procedure TfrmRVMathEditor.FormCreate(Sender: TObject);
begin
...
cmbFontSize.FontName := 'Arial';
cmbDefFontSize.FontName ...
- Fri Sep 27, 2019 8:09 am
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 64142
Re: Equation font in TfrmRVMathEditor: strange behavior
Thanks, Sergey!
I try to create my own form to set default equation settings and see that in TfrmRVMathEditor.FormCreate comboboxes initiates with 'Arial' font. Is this correct or I need to set init values 'Cambria Math'?
I try to create my own form to set default equation settings and see that in TfrmRVMathEditor.FormCreate comboboxes initiates with 'Arial' font. Is this correct or I need to set init values 'Cambria Math'?
- Thu Sep 26, 2019 8:42 am
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 64142
Re: Equation font in TfrmRVMathEditor: strange behavior
Sergey, one more question. When loading a document from a stream using InsertRVFFromStream (not LoadRVFFromStream) equations are rolled back to the original formatting. I read the help about DocObjects and the idea is clear, but I need to use InsertRVFFromStream due to working with styles templates ...
- Wed Sep 25, 2019 7:38 pm
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 64142
Re: Equation font in TfrmRVMathEditor: strange behavior
Ok, in the next update, it will be possible to get and set erroneous text in TRVMathItemInfo, without exceptions.
it will be great!
Sergey, I want to ask also about TrvActionInsertEquation: this action does not call the methods SetItem/GetItem, only Init method? If "Font > This equation ...
- Mon Sep 23, 2019 8:39 pm
- Forum: Support
- Topic: Equation font in TfrmRVMathEditor: strange behavior
- Replies: 15
- Views: 64142
Re: Equation font in TfrmRVMathEditor: strange behavior
Hmm, but if the user wants to return to editing equation later? Maybe I need to create descendant class of TRVMathItemInfo, save equation text in a separate property and use it in the TfrmRVMathEditor?