
Maybe there's a better way and I'm taking the wrong approach ?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseUp
put the short name of the target into whichControlClicked
switch whichControlClicked
case label1
do label1Stuff
break
case label2
do label2Stuff
...
Code: Select all
on mouseUp
lock screen
repeat with i = 1 to the dgNumberOfLines of group "Datagrid"
put the dgDataOfLine[i] of group "Datagrid" into theDataA
if theDataA["Type"]="button" and intersect(button ID theDataA["ID"], me) then
send mouseUp to button ID theDataA["ID"]
end if
lock screen
end repeat
end mouseUp