Found an interesting behavior.. I was trying to set up a custom control that keeps track of the current row and column and put the script in the group, but rawkeyup or rawkeydown messages never reach the group. I'm wondering if its because the message is sent to the figmentary popup field rather than the table field, and that the popup is not part of the group. But "the target" refers to the table field itself, so i'm not sure thats whats happening. Either way.. The following script works when put into a card or stack, NOT group, and not in the table field itself. Kinda freaky that the message is sent, just not to where I expect, despite "the target" still pointing back at the table field.
on mouseup getline pass mouseup end mouseup on rawkeyup getline pass rawkeyup end rawkeyup command getline if the short name of the focusedobject contains "revCell-" then put the short name of the focusedobject into tName replace "revCell-" with empty in tname set the cCol of the target to item 1 of tName set the cRow of the target to item 2 of tName end if end getline On Wed, Feb 14, 2018 at 10:19 AM, Mike Bonner <bonnm...@gmail.com> wrote: > For some reason I now want to name a table field "Opera." > > On Wed, Feb 14, 2018 at 10:09 AM, dunbarx via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> The extra field is what I once called a "phantom" field, ephemeral and >> elusive. But it does exist: >> >> In a table field script: >> >> on mouseEnter >> put the number of flds >> end mouseEnter >> >> If you move around the table field without a selection, you get 1, If you >> click on a "cell" to "select" it, and then move around, you will get "2'. >> The 2 comes because you have exited the phantom, and entered the table >> field. But the phantom exists as long as the selection does. >> >> Craig >> >> >> >> -- >> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution- >> User-f278306.html >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode