Hello,
i am looking for a method to scroll a group with the mouse wheel. I have find some ideas in this forum using the handler rawKeyDown but the result is not really useful : it's working but is not a smooth scrolling.
Considering that the scrolling work well in dataGrid, I suppose that is possible to make a smooth scrolling in a group... but I've no idea how
Someone know if it's possible or the best way is using datagrid ?
Regards,
Seb
scrolling a group with the mouse wheel
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: scrolling a group with the mouse wheel
HI seb,
Magic word is rawkeydown
Something like that:
Best regards
Jean-Marc
Magic word is rawkeydown
Something like that:
Code: Select all
local sCurScroll
on rawkeydown pRawKey
put "65309,65308" into tLesK
if pRawKey is in tLesK then
put 24 into tEmpan
if sCurScroll <> empty then
if the mouseloc is within the rect of group sCurScrollGr then
if pRawKey = 65308 then
put tEmpan into tSec
end if
if pRawKey = 65309 then
put (0-tEmpan) into tSec
end if
set the vscroll of group sCurScrollGr to (the vscroll of group sCurScrollGr)+tSec
end if
end if
else
pass rawkeydown
end if
end rawkeydown
Jean-Marc
https://alternatic.ch
-
- Livecode Opensource Backer
- Posts: 9461
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: scrolling a group with the mouse wheel
Hi Jean-Marc,
thanks you very much for your answer.
This handler work very well ! I have to make some changes to work with scrolling fields in group but the result is very fine !
Best regards,
Seb
thanks you very much for your answer.
This handler work very well ! I have to make some changes to work with scrolling fields in group but the result is very fine !
Best regards,
Seb
Re: scrolling a group with the mouse wheel
Interessing method, I haven't seen this post before but I thought something like this, if I can't find a good way to use the mouse wheel.
Seb