DataGrid Scrolling - how to target specifc field
Posted: Sat Jan 02, 2016 4:17 am
Hello, I was wondering how to achieve making a text field auto scroll (like a stock ticker) when user clicks on particular DataGrid field. I can get the first row to work, but cannot specify further rows as it just triggers first row again. I am testing with animation engine.
On Card Script:
On Behavior Script
I tried using target gathering techniques like "the long ID of the target", but get Chunk errors.
Any help would be great, thanks
Happy Holidays
On Card Script:
Code: Select all
on autoScroll pStart,pDuration
lock screen local tScroll,tElapsed
put the millisecs-pStart into tElapsed
put round(aeEaseIn(0,the formattedWidth fld "fieldName",pDuration,tElapsed,2)) into tScroll
set the hScroll of fld "fieldName" to tScroll
unlock screen
if tElapsed < pDuration then
send "autoScroll" && pStart,pDuration to me in 30 millisecs
end if
end autoScroll
Code: Select all
on mouseUp pMouseBtnNum
if pMouseBtnNum is 1 then
switch the short name of the target
case "fieldName"
autoScroll the millisecs,12000
break
end switch
end if
pass mouseUp
end mouseUp
Any help would be great, thanks
Happy Holidays