Datagrid hiliting problem
Trevor DeVore
lists at mangomultimedia.com
Tue Mar 23 13:16:06 EDT 2010
On Mar 23, 2010, at 6:30 AM, Jacopo Lupi wrote:
> I have a question about datagrids.
>
> I need to turn off the hiliting of lines in a datagrid with the auto
> hilite prop turned on when i click outside the used (or existing)
> lines.
>
> Litte example:
>
> I have a datagrid filled with 3 lines. I click on the second line
> and it becomes hilited.
>
> If I click on the empty part of the datagrid the second line remains
> hilited. I would like the hiliting of the second row to disappear.
Try adding this to the data grid group script and see if it does what
you want (untested):
on mouseDown pBtnNum
dgMouseDown pBtnNum
if pBtnNum is 1 then
if the dgDataControl of the mouseControl is empty then
## didn't click on a row
set the dgHilitedLines of me to empty
end if
end if
end mouseDown
--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com
More information about the use-livecode
mailing list