Rounded Selection

General TRichView support forum. Please post your questions here
Post Reply
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Rounded Selection

Post by standay »

Hi Sergey,

Is there a way to get rounded selections of text like Visual Studio Code editor does?

Rounded selection example
Rounded selection example
Image21.png (52.06 KiB) Viewed 5112 times

Not a big deal but I wanted to ask about it.

Thanks Sergey

Stan
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Rounded Selection

Post by Sergey Tkachenko »

Sorry, this feature is not supported.
The only mode where it could be implemented easily is drawing semitransparent FireMonkey selection: in this mode, just parameters of Canvas.FillRect need to be changed.
In VCL and non-transparent FMX selection, it would require working with rounded clipping regions. And results will not be very good without antialiasing.
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Re: Rounded Selection

Post by standay »

OK, worth asking about it. I was afraid it might be too much change to be worth it. Well, maybe keep it in mind for the future.

Thanks Sergey

Stan
Post Reply