<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Now that I have a text control with selection support I can solve many of my issues, but not all of them. I still feel like it would be extremely useful if “Text” would support selection out of the box (off by default, enabled via API or CSS).<div><br></div><div>Dirk</div><div><br><div><br><div><blockquote type="cite"><div>On 20 Aug 2024, at 16:09, Dirk Lemmermann <dlemmermann@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">I have taken quizynox approach and used it for the TextView control in GemsFX. After some additions the control now supports a text selection behaviour similar to the one found in TextArea (ctrl-c, ctrl-a, stylable “highlight” properties, double click for word selection, triple click for paragraph selection, etc…). <div><br></div><div>Dirk</div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On 19 Aug 2024, at 11:02, Marius Hanl <mariushanl@web.de> wrote:</div><br class="Apple-interchange-newline"><div><div><div style="font-family: Verdana;font-size: 12.0px;"><div>I also think this might be a good addition to the JFX Core.<br>
This behavior should be off by default, but can be turned on via CSS or Code.<br>
Another idea could be a new Control that extends from Label.</div>
<div> </div>
<div>-- Marius</div>
<div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 16. August 2024 um 12:12 Uhr<br>
<b>Von:</b> "Dirk Lemmermann" <dlemmermann@gmail.com><br>
<b>An:</b> "openjfx-dev" <openjfx-dev@openjdk.org><br>
<b>Betreff:</b> Label Text Selection</div>
<div name="quoted-content">Hi everyone,<br>
<br>
I recently added a custom text control (called “TextView") to the GemsFX project. It supports a somewhat limited text selection. Selection is only possible on a per-word basis. I received a bit of feedback on this control and I was wondering whether it would be worth thinking about adding a general text selection capability to labels. Is this something worth looking into? Is it even feasible?<br>
<br>
I guess one of the reasons why this topic keeps popping up is the fact that users are so used to selecting any text in web pages, but they can’t do it in desktop apps.<br>
<br>
Dirk<br>
</div>
</div>
</div>
</div></div></div>
</div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></body></html>