Search found 19 matches

by Fab85
Thu Apr 10, 2025 12:45 pm
Forum: Support
Topic: OnJump -> OnRVDblClick
Replies: 1
Views: 18413

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

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

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

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

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

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

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

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

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

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

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

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 ...
by Fab85
Thu Jan 23, 2025 2:17 pm
Forum: Support
Topic: TrichRichViewEdit.GetWordUnderCursorWithDelimiters ?
Replies: 1
Views: 91746

TrichRichViewEdit.GetWordUnderCursorWithDelimiters ?

Hello,


I need to extract a selected word delimited by text (start delimiter '[' end delimiter ']'), for example:
"Sample data speed: [CustomerTable.MyField] km/h".
I want to display a "friendly" caption of the selected delimited field.

If a letter of MyField is selected, TrichRichViewEdit ...
by Fab85
Wed Jan 22, 2025 11:40 am
Forum: Support
Topic: TRichViewEdit LoadRTFFromStream add an empty line
Replies: 2
Views: 99531

Re: TRichViewEdit LoadRTFFromStream add an empty line

Hello Sergey,

I fell into the trap because, in most cases, a LoadFromStream (Tmemo, Trichedit) operation clears the destination content. However, you clearly mentioned this in the documentation, and I missed it :roll: .

Thank you for your quick and efficient response—it’s greatly appreciated!
by Fab85
Wed Jan 22, 2025 9:04 am
Forum: Support
Topic: TRichViewEdit LoadRTFFromStream add an empty line
Replies: 2
Views: 99531

TRichViewEdit LoadRTFFromStream add an empty line

Hello,

I am testing TRichViewEdit, and I encountered an issue where it seems to add an unwanted line break at the first line. Below is the code I used for testing:

procedure TForm17.FormShow(Sender: TObject);
var
LTextString:TStringstream;
begin
LTextString:= TStringstream.create;
try ...