Paul: Well, I’ve gotten so many good tips from Mike. He is amazing! I never would have found that one.
Yes, it does actually work. Thanks! Bill William A. Prothero https://earthlearningsolutions.org > On May 2, 2020, at 5:38 PM, Paul Hibbert via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Mike Bonner posted this back on the 14th February 2020… > > 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 > > I just tried a quick test and tName has the cell row and column. > > Paul > >> On May 1, 2020, at 22:21, William Prothero via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >> Folks: >> I have an app that requires that I be able to get the cell row and column >> when I click on the cell. I know a dataGrid can do this, but is it possible >> with a table field? I know I can get the clicked line, but what about the >> cell, when the table is empty. >> >> I use, to get the line (from the lessons), but it only returns the line >> number: >> on mouseUp >> >> put the clickline into msg >> >> put return & value (the clickline) after msg >> >> set the itemdelimiter to tab >> >> put return & item 1 of value (the clickline) && item 2 of value (the >> clickline) after msg >> >> end mouseUp >> >> Tnx for any suggestions. >> Bill >> >> William A. Prothero >> https://earthlearningsolutions.org >> >>> On May 1, 2020, at 5:49 PM, Bob Sneidar via use-livecode >>> <use-livecode@lists.runrev.com> wrote: >>> >>> Hi all. >>> >>> I’m gonna say that script only stacks cannot have behaviors eh? Reason is, >>> I’d like to move my nested data grid behavior to a script only stack, but >>> it occurs to me this might break the datagrid, since it’s next level >>> behavior is the old data grid behavior button (not sure why that’s still >>> there) then the actual script only datagrid library. >>> >>> Bob S >>> >>> _______________________________________________ >>> 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 > > > _______________________________________________ > 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