How to allow scrolling with arrow keys in a listview

Discuss GUI programming with the MUI Royale plugin here
Post Reply
NathanH
Posts: 107
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

How to allow scrolling with arrow keys in a listview

Post by NathanH »

Hi,

MUI-Demo and my listviews do not allow scolling with arrow keys. The SimpleMail listviews do. Is it a version thing? How does one allow scrolling with arrow keys in a listview? Thanks.

NathanH
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: How to allow scrolling with arrow keys in a listview

Post by SamuraiCrow »

Have you tried the "Accelerator" class to bind key shortcuts?
I'm on registered MorphOS using FlowStudio.
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: How to allow scrolling with arrow keys in a listview

Post by SamuraiCrow »

Whoops! I noticed too late that you're using MUI Royale instead of RapaGUI.
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to allow scrolling with arrow keys in a listview

Post by airsoftsoftwair »

You need to set the listview as the window’s default object using Window.DefaultObject. Otherwise the listview needs to have keyboard focus for cursor key scrolling to work.
NathanH
Posts: 107
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

Re: How to allow scrolling with arrow keys in a listview

Post by NathanH »

I didn't make myself clear. If I have three items in a listview that has room for twenty so that scrolling is unnecessary, the arrow keys do not scroll from item 1 to item 2 or item 2 to item 3 even if the listview has the focus.

NathanH
NathanH
Posts: 107
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

Re: How to allow scrolling with arrow keys in a listview

Post by NathanH »

Never mind, I tried to gain focus by clicking on the listview. It scrolls just fine once you tab to it.

NathanH
Post Reply