The Visible Hilited Line of a Datagrid
Bob Sneidar
bobsneidar at iotecdigital.com
Fri Sep 7 14:28:18 EDT 2018
Thanks Trevor! I swear I scoured the API and never saw that!
Bob S
> On Sep 7, 2018, at 11:06 , Trevor DeVore via use-livecode <use-livecode at lists.runrev.com> wrote:
>
>> It must be late in the day, but I am having a hard time getting the
>> VISIBLE hilited line of a table datagrid. I can do the math based on the
>> scroll and all that, but what I want is for example, in a scrolled
>> datagrid, the user clicks on the first visible line. I want to return 1, or
>> if the second visible line I want to return 2. I was given to understand
>> that when scrolling, the fields are drawn from scratch, but their names
>> reflect their index and NOT their visible position in the scrolled grid!
>>
>
> Take a look at the dgVisibleLines property. Use dgHilitedLines
> and dgVisibleLines to determine the offset.
>
> --
> Trevor DeVore
More information about the use-livecode
mailing list