Search found 22 matches

by Fab85
Wed Sep 09, 2026 4:25 pm
Forum: Support
Topic: Insert as Markdown ?
Replies: 5
Views: 198

Re: Insert as Markdown ?

Does your editor use style templates? (UseStyleTemplates property = True).
Thank you for answer.

Does do this (disable UsestyleTemplate while inserting) is a good idea :

Code: Select all

Myrve.UseStyleTemplates:=false;
InsertMarkdown(MDClipboardText,Myrve);
Myrve.UseStyleTemplates:=true;
by Fab85
Tue Sep 08, 2026 10:18 am
Forum: Support
Topic: Insert as Markdown ?
Replies: 5
Views: 198

Re: Insert as Markdown ?

Hello,

Thank you for your answer.

However, I have a small issue when inserting Markdown content into an existing RTF document, especially when the Markdown contains formatting such as bold text, headings, or numbered lists :
The font size does not seem to be consistent: some parts of the inserted ...
by Fab85
Mon Sep 07, 2026 3:59 pm
Forum: Support
Topic: Insert as Markdown ?
Replies: 5
Views: 198

Insert as Markdown ?

Hello,

A InsertText method exists.
There is also a InsertMarkdownFromStreamEd and a PasteMarkdown .

But what I need is to insert a text containing markdown (without using/overriding clipboard with PasteMarkdown ) :
A function like InsertMarkdownText ?

I need this to insert a AI response markdown ...
by Fab85
Thu Apr 10, 2025 12:45 pm
Forum: Support
Topic: OnJump -> OnRVDblClick
Replies: 1
Views: 74443

OnJump -> OnRVDblClick

Hello,

Open link using Onjump event work fine.
But on my old application with TrichEdit I handle OnDblClick event to open link (so without CTRL pressed). So I need to do the same with TrichViewEdit.


So I try to do the same with :

procedure MyTRichView.OnTRichViewEditRVDblClick(Sender ...
by Fab85
Mon Apr 07, 2025 8:03 am
Forum: Support
Topic: Empty after html content pasted from clipboard ?
Replies: 2
Views: 65682

Re: Empty after html content pasted from clipboard ?

Thank you for your source code it's work fine.
by Fab85
Fri Apr 04, 2025 2:10 pm
Forum: Support
Topic: Empty after html content pasted from clipboard ?
Replies: 2
Views: 65682

Empty after html content pasted from clipboard ?

Hello,

To test is a TRichViewEdit is empty.
Equivalent of a :
if (trim(MyTRichEdit.Lines.text)='') then ...

I use this function :

// look for an equivalent to
function IsRichViewEmpty(ARichView: TCustomRichView): Boolean;
var
LIndex: Integer;
begin
Result := True;
try
for LIndex := 0 to ...
by Fab85
Thu Mar 13, 2025 2:33 pm
Forum: Support
Topic: Feature Request: Multi-Selection with CTRL (like Word & LibreOffice)
Replies: 1
Views: 54669

Feature Request: Multi-Selection with CTRL (like Word & LibreOffice)

Hello,

I would like to request a feature to enable multi-selection in TRichView, similar to how it works in Microsoft Word and LibreOffice.

Currently, TRichView only allows continuous text selection. However, in Word and LibreOffice, users can:

Hold the CTRL key
Select multiple text parts ...
by Fab85
Mon Mar 03, 2025 2:20 pm
Forum: Support
Topic: TRichViewedit, clear and LoadFromStream
Replies: 1
Views: 59717

TRichViewedit, clear and LoadFromStream

Hello,

In my software, I use a TRichViewEdit to load and save event details in RTF or plainText format from my database. My process is as follows :


// saving
MyTrichviewEdit.clear;
MyTrichviewEdit.LoadFromStream(AMyStream);


And after my end-user can modify it.
Save save result I do a ...
by Fab85
Wed Feb 12, 2025 9:03 am
Forum: Support
Topic: URLScan and TDBRichView ?
Replies: 5
Views: 149470

Re: URLScan and TDBRichView ?

Hello,
Sergey Tkachenko wrote: Tue Feb 11, 2025 3:37 pm Use OnLoadDocument event.
Unfortunately I use a TcxDBTRichViewEdit where OnLoadDocument isn't published ?!

So I have done :

Code: Select all

  MyTcxDBTRichViewEdit.InnerEditor.OnLoadDocument:=   MyTcxDBTRichViewEditOnLoadDocument;
But it's seems to be never executed ?
by Fab85
Tue Feb 11, 2025 1:18 pm
Forum: Support
Topic: URLScan and TDBRichView ?
Replies: 5
Views: 149470

Re: URLScan and TDBRichView ?

Yes it can work on a TCustomRichView but when (which event) you call it ?
Because TDBRichView automatically load and format is content !
by Fab85
Tue Feb 11, 2025 12:01 pm
Forum: Support
Topic: URLScan and TDBRichView ?
Replies: 5
Views: 149470

URLScan and TDBRichView ?

Hello,

You have an interesting demo called "ScanURLs" which work fine for custom URL for example.

But how to implement is in a TDBRichView/TDBRichViewEdit ?
Problem it is that this component use it"s own loadfromstream + format !!!
by Fab85
Wed Jan 29, 2025 4:12 pm
Forum: Support
Topic: TrichViewEdit : ChangeSelectedTextColor best code ?
Replies: 3
Views: 150746

Re: TrichViewEdit : ChangeSelectedTextColor best code ?

Hello,

That's a bit complicated on my scenario :

I have a lot of TrichViewEdit (or TcxTRichViewEdit) on different forms. So a TDI application.
Each connected to a TRVStyle. TcxTRichViewEdit seems to automagically create him TRVStyle.

In a common TDataModule I have a TPopupMemu. All my ...
by Fab85
Wed Jan 29, 2025 3:49 pm
Forum: Support
Topic: TrichViewEdit : ChangeSelectedTextColor best code ?
Replies: 3
Views: 150746

TrichViewEdit : ChangeSelectedTextColor best code ?

Hello,

I'am always studying the TrichViewEdit component.
I have find two way to change by code (without using Taction) the text color of the selected text.
Which is the better one ? Maybe it's exists a better way ?


procedure ChangeSelectedTextColor(ARichViewEditTarget: TCustomRichViewEdit ...
by Fab85
Mon Jan 27, 2025 1:55 pm
Forum: Support
Topic: Access Violation in RVDXRibbonDemo - EListError 'List index out of bounds (-1)'
Replies: 3
Views: 140513

Re: Access Violation in RVDXRibbonDemo - EListError 'List index out of bounds (-1)'

Callstack is :

:76801722 KERNELBASE.RaiseException + 0x62
System.Classes.TList.Get(-1)
:002edae9 TList.Get + $19
System.Classes.TList.Get(???)
RVItem.TRVItemList.GetObject(-1)
RichView.TCustomRichView.GetItem(-1)
RVEdit.TCustomRichViewEdit.GetCurrentItemEx(TRVTableItemInfo,$A52D600,nil)
MainFrm ...
by Fab85
Mon Jan 27, 2025 10:29 am
Forum: Support
Topic: Access Violation in RVDXRibbonDemo - EListError 'List index out of bounds (-1)'
Replies: 3
Views: 140513

Access Violation in RVDXRibbonDemo - EListError 'List index out of bounds (-1)'

Hello,

I am encountering an issue with the RVDXRibbonDemo project. Specifically, it raises an]EListErrorexception with the message:
'List index out of bounds (-1). The range of TRVItemList is 0..0.'

Here is the code that triggers the error:

procedure TfrmMain.Button1Click(Sender: TObject ...