Search found 7512 matches

by Sergey Tkachenko
Fri Aug 24, 2018 10:01 pm
Forum: Support
Topic: How to set the alignment of TRVTableItemInfo in cell
Replies: 9
Views: 392

Re: How to set the alignment of TRVTableItemInfo in cell

Before calling

Code: Select all

 table.Cells[0,0].AddItem('mytest2',tb);
call

Code: Select all

 tb.ParaNo := GetParaStyleWithAlignment(rvaRight,richView1.Style);
by Sergey Tkachenko
Fri Aug 24, 2018 9:58 pm
Forum: Support
Topic: FirstPageHeader and NormalHeaders
Replies: 4
Views: 256

Re: FirstPageHeader and NormalHeaders

If you activated header editing (using StartEditing) and want to modify RVHeader content, you need to use only editing methods. Do not use Clear and Format, but use methods like SelectAll, DeleteSelection, InsertText, etc. However, if you need to generate a new document and do not need this operatio...
by Sergey Tkachenko
Fri Aug 24, 2018 9:51 pm
Forum: Support
Topic: How to create line with different parts (bold, coloured etc.) without AddText?
Replies: 1
Views: 145

Re: How to create line with different parts (bold, coloured etc.) without AddText?

AddTextNL ('This is ', RED_NORMAL_STYLE, 0, 0);
AddTextNL ('VERY IMPORTANT NUMBER', BOLD_STYLE, -1, 0);
AddTextNL (' and here is the rest of sentence.', NORMAL_STYLE, -1, 0);
by Sergey Tkachenko
Wed Aug 22, 2018 7:46 am
Forum: Support
Topic: How to set the alignment of TRVTableItemInfo in cell
Replies: 9
Views: 392

Re: How to set the alignment of TRVTableItemInfo in cell

You call AddNL with ParaNo = 2. I do not know the value of RichView1.Style.ParaStyles[2].Alignment. If it is rvaRight, tb must be right-alignment. To make sure that you use right alignment, use the functions from my code sample. Instead of table.Cells[0,0].AddNL('',0,2); call table.Cells[0,0].AddNL(...
by Sergey Tkachenko
Tue Aug 21, 2018 6:16 pm
Forum: Support
Topic: How to delete a TRVTableItemInfo from TRichView?
Replies: 4
Views: 243

Re: How to delete a TRVTableItemInfo from TRichView?

Call richview1.Format after DeleteItems.
by Sergey Tkachenko
Tue Aug 21, 2018 3:31 pm
Forum: Support
Topic: Clone a table from one TRichView to another
Replies: 2
Views: 179

Re: Clone a table from one TRichView to another

The simplest way is selecting the table, saving selection to RVF, and then insert RVF to another editor. Let ItemNo is the item index of the table in rve1, and you want to insert a copy of this table in the position of caret in rve2. var Stream: TMemoryStream; rve1.SetSelectionBounds(ItemNo, 0, Item...
by Sergey Tkachenko
Tue Aug 21, 2018 3:27 pm
Forum: Support
Topic: How to delete a TRVTableItemInfo from TRichView?
Replies: 4
Views: 243

Re: How to delete a TRVTableItemInfo from TRichView?

DeleteSelection is an editing operation, so it is available only in editor.

In TRichView, you can use DeleteItems method.
by Sergey Tkachenko
Tue Aug 21, 2018 3:25 pm
Forum: Support
Topic: How to set the alignment of TRVTableItemInfo in cell
Replies: 9
Views: 392

Re: How to set the alignment of TRVTableItemInfo in cell

The cell is not really empty, it contains one empty text item. This code inserts a table having all cells right-alignment: function GetParaStyleWithAlignment(Alignment: TRVAlignment; Style: TRVStyle): Integer; var ParaStyle: TParaInfo; begin ParaStyle := TParaInfo.Create(nil); ParaStyle.Alignment :=...
by Sergey Tkachenko
Tue Aug 21, 2018 2:53 pm
Forum: Support
Topic: How to set the alignment of TRVTableItemInfo in cell
Replies: 9
Views: 392

Re: How to set the alignment of TRVTableItemInfo in cell

In TRichView, cells do not have horizontal alignment properties.
Align all paragraphs in the cell to the right.
by Sergey Tkachenko
Fri Aug 17, 2018 9:22 pm
Forum: Support
Topic: latest version in Delphi and Lazarus issue
Replies: 3
Views: 264

Re: latest version in Delphi and Lazarus issue

Sorry, I do not remember an example with imagebutton.pas. Are you sure that it is from our examples?

A memory may be corrupted somehow. What's the code of GetTempPath?
by Sergey Tkachenko
Wed Aug 15, 2018 8:33 am
Forum: ScaleRichView
Topic: SRVPrint - there is no default printer currently selected
Replies: 3
Views: 577

Re: SRVPrint - there is no default printer currently selected

I sent a fix by a private message, please test it.
by Sergey Tkachenko
Tue Aug 14, 2018 5:25 pm
Forum: Support
Topic: hunspell for richview
Replies: 5
Views: 4926

Re: hunspell for richview

You tried to install an old version of the HunSpell parser.

The new version is in <TRichView Dir>\ThirdParty\HunSpell\Source\, and TRichView Setup installs it automatically.
by Sergey Tkachenko
Tue Aug 14, 2018 5:18 pm
Forum: ScaleRichView
Topic: SRVPrint - there is no default printer currently selected
Replies: 3
Views: 577

Re: SRVPrint - there is no default printer currently selected

I thought that checking for Printers.Count = 0 solved the problem, and these changes there made...

I cannot reproduce the error in the scenario you described. In my test, Printers.Count = 0 in this case.
What version of Windows do you use?
by Sergey Tkachenko
Tue Aug 14, 2018 2:02 pm
Forum: RVMedia
Topic: Pause Recording
Replies: 3
Views: 470

Re: Pause Recording

It will be included in the next update.
While paused, new frames and sound samples will be not written to a file.
It is perfectly ok for video without sound, but video with sound may be out of sync a bit after resuming, because video and sound are buffered differently.