I want to hilite only 1 cell at at time in data grid table.
This means that when i click a different cell, the previously hilited one should stop being hilited and hilite the new cell.
It's easy enough to hilite a cell:
Code: Select all
on mouseUp
set the opaque of the target to "true"
set the backColor of the target to "green"
end mouseUp
Examining the structure of the table cell (examining the long name of 'the target'), this seems to be:
Code: Select all
group "<columnName> <rowNumber>" of
group "<columnName>" of
group "dgList" of
group "dgListMask" of
group "<data grid name>" of
card "<card name>" of
stack "<stack name>"
Code: Select all
repeat with x = 1 to the number of groups of group "<columnName>" of group "dgList" of group "dgListMask" of group "<data grid name>"
set the opaque of group x of group "<columnName>" of group "dgList" of group "dgListMask" of group "<data grid name>" to false
end repeat
Many thanks
Stam