Hi all,
Arrow key messages do not work for scrolling groups
on Livecode 9.6.1
Why it's not possible to scroll an image within a group
using the arrow keys?
Thanks in advance!
Al
Arrow keys messages do not work for scrolling groups
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: Arrow keys messages do not work for scrolling groups
Hi Al,
I just tested it and works here LC 9.6.1
Kind regards
Jean-Marc
I just tested it and works here LC 9.6.1
Code: Select all
on arrowkey pkey
if pkey = Down then
set the vscroll of group 1 to (the vscroll of group 1) +4
end if
if pkey = up then
set the vscroll of group 1 to (the vscroll of group 1) -4
end if
end arrowkey
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 9647
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Arrow keys messages do not work for scrolling groups
Works for me as well, 9.6.1 on Mac OS.
Is it that the group itself moves with each arrowKey message, as opposed to its scroll? Without Jean-Marc's handlers, that is what would happen.
So the question is what is different on your end? Is the group smaller than the full extent of its scroll? If not, arrowKey will do nothing, not even move it
Craig
Is it that the group itself moves with each arrowKey message, as opposed to its scroll? Without Jean-Marc's handlers, that is what would happen.
So the question is what is different on your end? Is the group smaller than the full extent of its scroll? If not, arrowKey will do nothing, not even move it
Craig
Last edited by dunbarx on Tue May 04, 2021 2:49 am, edited 1 time in total.
Re: Arrow keys messages do not work for scrolling groups
Now I understand.
The script should be put in the card,
not in the group.
Thanks a lot for your help!
The script should be put in the card,
not in the group.
Thanks a lot for your help!
Code: Select all
Stack SHA-1 20c08e9d10c5200fa331757b1b0da1f1329876a2
Stack MD5 84ce2a8494a22a0b257d3d581397e0fb
Stack CRC-32 656e0b72