DataGrid mouseDown on scroll bar problem
Posted: Fri Aug 16, 2013 9:30 pm
I'm using this script in a data grid. It works fine unless I click the scroll bar of the field before clicking a row of text. Is there a way to prevent this like I capture the dgHeaderControl in line 5?
global grStackName
on mouseDown pMouseBtnNum
dgMouseDown pMouseBtnNum
if pMouseBtnNum is 1 then
if the dgHeaderControl of the target is empty then
put GetDataOfIndex(the dgHilitedIndexes of me, "StackName") into grStackName
end if
end if
end mouseDown
global grStackName
on mouseDown pMouseBtnNum
dgMouseDown pMouseBtnNum
if pMouseBtnNum is 1 then
if the dgHeaderControl of the target is empty then
put GetDataOfIndex(the dgHilitedIndexes of me, "StackName") into grStackName
end if
end if
end mouseDown