What a datagrid "sees"
Bob Sneidar
bobsneidar at iotecdigital.com
Wed Dec 6 18:04:47 EST 2017
Okay I have figured out what this is. the mouseControl is sometimes returning the LAST object that was being pointed to, and NOT the CURRENT object being pointed to. I think this is a bug. I will try to come up with a sample stack and post it on QC.
Bob S
> On Dec 6, 2017, at 13:12 , Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Hi all. I have a mouseEnter handler in a table datagrid which is supposed to get the mouseControl. When I point at one of the populated table fields I trigger the mouseEnter, but then nothing else. I can point at another field and this time it might work. Or not. I am not sure why that is happening. It's as though the mouseControl is not getting updated properly. Here is the handler:
>
> on mouseEnter
> put "saw mouseEnter"
>
> -- lock messages
> wait 1 second
> -- unlock messages
>
> put the mouseControl into tMouseControl
>
> put space & tMouseControl after msg
> put word 2 of tMouseControl into tControlNum
> if tControlNum is not a number then exit mouseEnter
> put the name of control tControlNum into tControlName
>
> put space & tControlName after msg
>
> if word 1 of tControlName is not "field" then exit mouseEnter
> put the long id of me into tMyID
> put wordOffset("card", tMyID) into tFirstWord
> put word tFirstWord to -1 of tMyID into tThisCard
> put the long id of control tControlNum of tThisCard into tTarget
> put "servicetype,techname,problemdescription,servicedate,starttime,endtime,partstotal,labortotal" into tKeyList
> dgToolTip tTarget, tKeyList
> end mouseEnter
>
> I always get "saw mouseEnter" but often times nothing else. Any idea why the mouseControl would not ALWAYS be the object being pointed to?
>
> Bob S
More information about the use-livecode
mailing list