LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
So when you scroll the wheel you get a bunch of random numbers , and when you click the button that contains the first script you get another. What do you want to do?
on rawKeyDown pKeyCode
local tIncrement
local tScroll
-- wheel up,down,left,right
if pKeyCode is among the items of 65308,65309 then
put trunc(0.10 * the height of me) into tIncrement
switch pKeyCode
case 65308
put the scroll of me into tScroll
add tIncrement to tScroll
set the scroll of me to tScroll
break
case 65309
put the scroll of me into tScroll
subtract tIncrement from tScroll
set the scroll of me to tScroll
break
end switch
exit rawKeyDown
end if
pass rawKeyDown
end rawKeyDown
Sorry my explanation is not clear. the mousewheel work fine but i need to catch the end of the rawkeyDown message to adjust the vscroll (when it stop between 2 images).
I have found a temporary way with a mouseleave on the script of the control