Search found 9400 matches

by Sergey Tkachenko
Mon Mar 25, 2024 10:06 am
Forum: Support
Topic: Insert Item into a Header\Footer
Replies: 3
Views: 1804

Re: Insert Item into a Header\Footer

2) To insert a page number from the second page, you need to activate the special header for the first page: fScaleRichView.PageProperty.TitlePage := True. (or, if you want to do it as an undoable operation, fScaleRichView..SetIntPropertyEd(srvipPPTitlePage, 1)). Please note that fScaleRichView.Star...
by Sergey Tkachenko
Mon Mar 25, 2024 9:50 am
Forum: Support
Topic: Insert Item into a Header\Footer
Replies: 3
Views: 1804

Re: Insert Item into a Header\Footer

1) Before inserting content to the footer, you must activate its editing using StartEditing(srvrveHeader);.
See the explanation here: https://www.trichview.com/forums/viewto ... 203#p39203
by Sergey Tkachenko
Thu Mar 21, 2024 2:34 pm
Forum: Support
Topic: Shrink the text
Replies: 1
Views: 1552

Re: Shrink the text

Do you want to change text size dynamically? I.e., make text in long documents smaller, and in short documents larger? If yes, the simplest way is not changing font size, but apply zooming, by changing DocumentPixelsPerInch property. Smaller values make text smaller. After changing this property, ca...
by Sergey Tkachenko
Wed Mar 20, 2024 2:05 pm
Forum: RVMedia
Topic: Doesn't capture video stream
Replies: 4
Views: 3032

Re: Doesn't capture video stream

Summary: I received a sample jpeg frame from the topic starter. This is an unusual Jpeg, it cannot be read by Delphi classes (by TJpegImage in Vcl, and by TBitmap in FireMonkey). But I found how to modify it to make it compatible, and it seems to work now. I sent modified units to the topic starter ...
by Sergey Tkachenko
Wed Mar 20, 2024 12:31 pm
Forum: Support
Topic: I want the user cannot write more than 12 lines
Replies: 1
Views: 1678

Re: I want the user cannot write more than 12 lines

There is no built-in line count limitation. You can process OnChange event. In this event, check line count: function IsParaCountOk(rv: TCustomRichView; MaxCount: Integer): Boolean; var Count: Integer; begin Result := False; Count := 0; for i := 0 ro rv.ItemCount - 1 do if rv.IsFromNewLine[i] then b...
by Sergey Tkachenko
Sun Mar 17, 2024 7:22 pm
Forum: Examples, Demos
Topic: [Demo] Editors in editors
Replies: 16
Views: 47483

Re: [Demo] Editors in editors

Can you send me a sample project, as simple as possible?
by Sergey Tkachenko
Sun Mar 17, 2024 7:21 pm
Forum: Support
Topic: Best way to handle using TRichView
Replies: 5
Views: 13770

Re: Best way to handle using TRichView

Unfortunately, tables cannot be placed side by side. Planned for future versions.
by Sergey Tkachenko
Sun Mar 17, 2024 7:20 pm
Forum: Support
Topic: Make the caret visible
Replies: 3
Views: 2081

Re: Make the caret visible

1. Make sure that the editor is formatted. Call rve.Format; (this method moves the caret to the end of the document, so MoveCaret is redundant).
2. Probably the editor is not focused. Call rve.SetFocus.
by Sergey Tkachenko
Sat Mar 16, 2024 6:40 pm
Forum: Examples, Demos
Topic: [Demo] Editors in editors
Replies: 16
Views: 47483

Re: [Demo] Editors in editors

1. As for rv.RVData.DocumentWidth, try assigning rv.WordWrap = False. 2. As for efficiency. Do you need to add all this content by one function call, or do you add/delete subeditors one by one? The most efficient method is adding all content (using AddControlEx method), and then call rv.Format only ...
by Sergey Tkachenko
Wed Mar 13, 2024 8:50 pm
Forum: Support
Topic: HunSpell
Replies: 1
Views: 2352

Re: HunSpell

Do you call RVHunSpell.Check() yourself? If you assigned RVHunSpell to RVAHunSpellInterface.HunSpell, you should not call RVHunSpell.Check() (because it will attempt to localize a spell-checking dialog and will fail). Instead, use TrvActionSpellCheck action. This action assigns RVAHunSpellInterface....
by Sergey Tkachenko
Tue Mar 12, 2024 3:56 pm
Forum: RVMedia
Topic: Doesn't capture video stream
Replies: 4
Views: 3032

Re: Doesn't capture video stream

Do you use the full version or the trial version?
If the full version, can you check if the function TRVWebCam.SampleCB (MRVWinWebCamera.pas) is called?
by Sergey Tkachenko
Tue Mar 12, 2024 3:53 pm
Forum: Support
Topic: Problem with image sizes
Replies: 1
Views: 2445

Re: Problem with image sizes

TRichView for FireMonkey saves images with default parameters. For WebP, when parameters are not specified, Skia4Delphi chooses maximum image quality, so images are saved lossless (or almost lossless), resulting large files. In the next update, I'll add a new global variable RVDefaultImageSavingQual...
by Sergey Tkachenko
Mon Mar 11, 2024 9:24 am
Forum: Support
Topic: How to convert old data from TRichEdit to TRichView
Replies: 10
Views: 3236

Re: How to convert old data from TRichEdit to TRichView

The file that you sent to me previously as a sample field content was in RVF format (RichView Format). In this format, collections of text and paragraph styles are saved, so you had 3 options: - using styles from the document - ignore styles from document and use styles from the application - map st...
by Sergey Tkachenko
Sat Mar 09, 2024 3:00 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 315823

Re: Plain Text Bullets on Copy

To avoid saving markers in selection (or in the result of SaveText with TextOnly = True), change the function TRVMarkerItemInfo.GetBoolValue in RVMarker.pas. It must return False for rvbpAlwaysInText. In the next update, I'll modify it as function TRVMarkerItemInfo.GetBoolValue(Prop: TRVItemBoolProp...
by Sergey Tkachenko
Fri Mar 08, 2024 5:13 pm
Forum: Examples, Demos
Topic: How to print the content of a RichViewEdit ?
Replies: 4
Views: 1054

Re: How to print the content of a RichViewEdit ?

If you transfer document from TRichViewEdit to TJvRichEdit, you lose all formatting and objects unsupported by TJvRichEdit.

As I said, you need only 3 lines of code to print TRichViewEdit:

Code: Select all

RVPrint1.AssignSource(RichViewEdit1);
RVPrint1.FormatPages(rvdoAll);
RVPrint1.Print('My document', 1, False);