Can you share the workaround?

--
Jacqueline Landman Gay | [email protected]
HyperActive Software | http://www.hyperactivesw.com
On May 4, 2026 1:09:03 PM jbv via use-livecode <[email protected]> wrote:

Thank you for the suggestion.
But I have some HTMLtext inside flds inside groups inside a main group
and the structure seems to be too complex to catch the selectedloc
properly.

But nevermind, I found a workaround that works quite fast.

Le 2026-05-04 13:49, J. Landman Gay via use-livecode a écrit :
Will the top left position do?

select the mousechunk
get the selectedloc
select empty

The highlighting happens too fast to see.

--
Jacqueline Landman Gay | [email protected]
HyperActive Software | http://www.hyperactivesw.com
On May 4, 2026 8:43:20 AM jbv via use-livecode
<[email protected]> wrote:

Hi list,

Is there a way to know the x,y position of the mousechunk,
especially when the content of a field is not just plain
text, but HTMLtext with more that 1 line ?

For the x value, I tried to use the formattedwidth of the
portion of text given by the mousechunk.
And for the y value, I tried a combination of the font
size, the line height and the top field margin.
But there are exceptions that don't return accurate values...

Thank you in advance.
Best,
jbv

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




----------
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to