Search found 7738 matches

by Sergey Tkachenko
Mon Jul 08, 2019 7:58 pm
Forum: Examples, Demos
Topic: [Demo] DB Editor
Replies: 7
Views: 40685

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: 26362

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: 40685

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: 814

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: 814

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: 58915

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: 923

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: 58915

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: 495

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: 819

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: 664

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: 542

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: 532

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...
by Sergey Tkachenko
Thu Jun 20, 2019 8:48 am
Forum: Support
Topic: Deadlock with Synchronize in TRVWordEnumThread (XE6)
Replies: 16
Views: 17548

Re: Deadlock with Synchronize in TRVWordEnumThread (XE6)

Can you send me a call stack of the main process when the application freezes? (if you need instructions, let me know).
I am quite sure that TRichView code cannot lead to deadlocks by itself, but some third-party code that calls Synchronize probably may cause it.
by Sergey Tkachenko
Fri Jun 14, 2019 4:31 pm
Forum: Support
Topic: Undo of set editor background
Replies: 10
Views: 10767

Re: Undo of set editor background

My mistake, Edit.Change must be in ChangeBackgroundColor, not in DoChangeBackgroundColor. Also, I added CanChange check (it is especially important for TDBRichViewEdit). (Я ошибся, Edit.Change нужно добавить в ChangeBackgroundColor, а не в DoChangeBackgroundColor. Кроме того, следует добавить провер...