Page 1 of 1

Rounded Selection

Posted: Mon Jan 30, 2023 2:54 pm
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 5081 times

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

Thanks Sergey

Stan

Re: Rounded Selection

Posted: Tue Jan 31, 2023 4:48 pm
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.

Re: Rounded Selection

Posted: Tue Jan 31, 2023 5:29 pm
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