x,y position of the mousechunk ?
jbv at mozik.fr
jbv at mozik.fr
Mon May 4 14:06:29 EDT 2026
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 | 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
>
>
>
>
> _______________________________________________
> 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