Search found 7711 matches

by Sergey Tkachenko
Thu Jul 18, 2019 7:40 am
Forum: RVMedia
Topic: RVMedia 6 and RTSP - Authentication problems
Replies: 1
Views: 32

Re: RVMedia 6 and RTSP - Authentication problems

Even if we implement digest authentication in RVMedia code, we will be able to play only MJPEG by HTTP. RTSP and H.264 require FFmpeg or GStreamer (some time ago we started implementation of MJPEG by RTSP, but abandoned it).
by Sergey Tkachenko
Tue Jul 09, 2019 11:40 am
Forum: Support
Topic: User can not select Chinese text precisely by mouse
Replies: 1
Views: 195

Re: User can not select Chinese text precisely by mouse

You can disable word selection completely by assigning rvsmChar to RVStyle.SelectionMode. Unfortunately, you cannot disable it for Chinese text but enable for English text. But even with word selection, it is possible to select precisely: if you shrink the selection (while selecting, move the mouse ...
by Sergey Tkachenko
Mon Jul 08, 2019 7:58 pm
Forum: Examples, Demos
Topic: [Demo] DB Editor
Replies: 7
Views: 39891

Re: [Demo] DB Editor

I added ADO+Access version of this demo. As I said above, the main difficulty was storing binary RVF data in a text (memo) field. I used the simplest possible binary-to-text encoding - hexadecimal code. It is simple and fast, but increases data size by 100%. A better alternative would be Base64 enco...
by Sergey Tkachenko
Mon Jul 08, 2019 10:46 am
Forum: Examples, Demos
Topic: [Demo] Dual editor for translators
Replies: 10
Views: 25507

Re: [Demo] Dual editor for translators

Nostradamus, this project was created in the old version of TRichView. The only required change to make it work in the new version of TRichView, is removing type-casting to Word in all calls of IsDelimiterW. For example, change rve.RVData.IsDelimiterW(Word(ws[Offs])) to rve.RVData.IsDelimiterW(ws[Of...
by Sergey Tkachenko
Sun Jul 07, 2019 6:24 pm
Forum: Examples, Demos
Topic: [Demo] DB Editor
Replies: 7
Views: 39891

Re: [Demo] DB Editor

I'll try to make an example in the next couple of days. The main problem with MS Access, as far as I understand, the lack of field type for storing arbitrary binary data (required for RVF). Unfortunately, even "text mode" RVF is not really a plain text and requires a binary field. Well, there is a s...
by Sergey Tkachenko
Sun Jul 07, 2019 5:04 pm
Forum: ScaleRichView
Topic: Insert Background image in Tables via code
Replies: 3
Views: 327

Re: Insert Background image in Tables via code

If you want to change a cell background image, the code is similar. A direct assignment (cannot be undone): Table.Cells[0, 0].BackgroundImage := gr; Table.Cells[0, 0].BackgroundStyle := rvbsTiled; If you want to change as an editing operation (that can be undone), use SetCellBackgroundImage and SetC...
by Sergey Tkachenko
Sun Jul 07, 2019 4:58 pm
Forum: ScaleRichView
Topic: Insert Background image in Tables via code
Replies: 3
Views: 327

Re: Insert Background image in Tables via code

If you have a Table object, you can simply assign BackgroundImage property: Table.BackgroundImage := gr; This code copies an image from gr, you still need to free gr. However, if Table.BackgroundStyle = rvbsColor, this image will not be displayed. You need to assign rvbsStretched, rvbsTiled, or rvbs...
by Sergey Tkachenko
Sat Jul 06, 2019 8:05 am
Forum: Examples, Demos
Topic: [Demos] Expanding-collapsing
Replies: 12
Views: 57925

Re: [Demos] Expanding-collapsing

I suggest to place collapsible text in a table, and implement a link that hide/show a table (by assigning rvepHidden item property to 1 or 0). A similar feature is implemented in Help&Manual that uses TRichViewEdit as a topic editor. Here are examples of collapsible tables: https://www.trichview.com...
by Sergey Tkachenko
Sat Jul 06, 2019 7:58 am
Forum: Support
Topic: How to change spell check dictionary "on-the-fly" without changing UI language?
Replies: 2
Views: 386

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

UI language does not affect spelling.
You can see the demos in ThirdParty\ASpell\Demos\
They change spelling language with this code:

Code: Select all

  RichViewEdit1.ClearLiveSpellingResults;
  RVASpell1.DictIndex := ComboBox1.ItemIndex;
  RichViewEdit1.StartLiveSpelling;
by Sergey Tkachenko
Fri Jul 05, 2019 1:45 pm
Forum: Examples, Demos
Topic: [Demos] Expanding-collapsing
Replies: 12
Views: 57925

Re: [Demos] Expanding-collapsing

jonjon wrote:
Fri Jul 05, 2019 1:39 pm
Can this be done in a TRichViewEdit by the end-user ? If so, how should it be done ?
Thanks.
Sorry, I do not understand the question. "Can be done" what?
by Sergey Tkachenko
Tue Jul 02, 2019 8:50 am
Forum: RVMedia
Topic: AV on MRVTypesThreads.GetGUIDInfoWithCreate
Replies: 1
Views: 241

Re: AV on MRVTypesThreads.GetGUIDInfoWithCreate

You are right, this check must be added.
by Sergey Tkachenko
Tue Jul 02, 2019 8:49 am
Forum: RVMedia
Topic: AV on TRVMFFMPEG.InitDecode
Replies: 2
Views: 457

Re: AV on TRVMFFMPEG.InitDecode

This is a bug. This code must be:

Code: Select all

    try
      // Open video file
      if not OpenFile(FormatContext, DecCurTime, filename) then
      begin
          FormatContext := nil;
          exit;
      end;
    except
      exit;
    end;
by Sergey Tkachenko
Thu Jun 27, 2019 3:45 pm
Forum: ScaleRichView
Topic: About Paging of Large Texts in Cells(关于单元格中大段文字的分页问题)
Replies: 1
Views: 392

Re: About Paging of Large Texts in Cells(关于单元格中大段文字的分页问题)

Unfortunately (unlike TRichView), ScaleRichView cannot add page breaks inside table cells. Page breaks can be only between rows.
by Sergey Tkachenko
Wed Jun 26, 2019 5:18 pm
Forum: ScaleRichView
Topic: Insert image from a copy and paste
Replies: 1
Views: 277

Re: Insert image from a copy and paste

There is no standard Clipboard format for Jpegs, so the copied image will be inserted as a bitmap. The only way to paste JPEG to RichViewEdit is copying a JPEG file (for example, from Explorer). Here is a function that pastes bitmap as JPEG: function PasteBitmapAsJpeg(rve: TCustomRichViewEdit): Bool...
by Sergey Tkachenko
Wed Jun 26, 2019 8:00 am
Forum: ScaleRichView
Topic: Searching text in datafield
Replies: 1
Views: 287

Re: Searching text in datafield

Sorry, no. If you have RVF field, you have the following options to search: 1) Create one more field, a plain text. When saving RVF field, save a copy of document as a plain text in another field. Then you can use SQL queries or other standard tools to search in this plain text. or 2) Load content o...