x,y position of the mousechunk ?

J. Landman Gay jacque at hyperactivesw.com
Mon May 4 13:49:05 EDT 2026


Will the top left position do?

select the mousechunk
get the selectedloc
select empty

The highlighting happens too fast to see.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 4, 2026 8:43:20 AM jbv via use-livecode 
<use-livecode at lists.runrev.com> 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
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list