Hi all. Not sure if this is a bug or expected behavior. In a vertically scrolled data grid I have a mouseUp handler. Ignore the fiddly bits that are irrelevant. The last two lines are the important ones:
on mouseUp put the mouseControl into tControl put word 1 of the name of tControl into tType if tType is not "field" then pass mouseUp put the short name of tControl into tName put word 1 of tName into tColumName put 0 + word 2 of tName into tRow put the dgProp ["columns"] of me into tColumns put lineOffset(tColumName, tColumns) into tColumnNum put the dgIndexOfLine [tRow] of me into tIndex put the dgHilitedIndex of me into tHilitedIndex end mouseUp It’s my understanding that the dgIndexOfLine should return the actual index corresponding to the line, but instead it simply returns the line, In my case I am clicking on line 5 of a vertically scrolled data grid. tIndex contains 5, tHilitedIndex contains 55! As far as I can see, the dgIndexOfLine should return the same thing (assuming I am clicking on a control in the hilitedline). 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