DataGrid mouseDown on scroll bar problem

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

DataGrid mouseDown on scroll bar problem

Post by quailcreek » 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
Tom
MacBook Pro OS Mojave 10.14

Post Reply