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

General TRichView support forum. Please post your questions here
Post Reply
Fab85
Posts: 30
Joined: Tue Apr 09, 2024 6:02 am

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

Post by Fab85 »

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 without losing the previous selection
See a highlight effect for each selected range

I attempted a workaround by handling OnMouseDown and OnKeyDown events, storing selected ranges in a list, and applying a highlight style. However, this is not an ideal solution.

Is there any native support for multi-selection in TRichView, or could this be considered for a future update?

Thanks for your feedback!
Post Reply