Datagrid: multiple hilites

David Bovill david at architex.tv
Sat Oct 17 19:02:30 EDT 2009


I checked again Trevor. It makes sense that it does not work in cases where
the controls are not cached - where it is broken is when the controls are
cached but you try to get:

the dgRectOfIndex [1] of dataGrid

and the controls are scrolled heavily, so that the invisible row view would
be above the top of the card. In these cases it does not return the correct
geometry as the invisible row view is limited to the top of the screen and
no its "true" negative y values. These means that if you try to scroll to
the first row it does not work.


2009/10/17 Trevor DeVore <lists at mangomultimedia.com>

> On Oct 17, 2009, at 11:00 AM, David Bovill wrote:
>
>  Thanks - but "ScrollRectIntoView" would rely on "## See dgRectOfIndex in
>> order to get rect of a control in the data grid." - and this is broken for
>> cases in which the rows are scrolled above the grid (perhaps when they go
>> above the screens top?) -- see the handler below for a temporary fix.
>>
>
> Not broken, just designed for Data Grids where controls are cached. See the
> note for dgRectOfIndex in the source. This is one reason why it remains
> undocumented :-)
>



More information about the use-livecode mailing list