How to allow scrolling with arrow keys in a listview

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

How to allow scrolling with arrow keys in a listview

Post by NathanH » Sat Jul 14, 2018 1:14 am

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: 173
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

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

Post by SamuraiCrow » Mon Jul 16, 2018 5:03 pm

Have you tried the "Accelerator" class to bind key shortcuts?

SamuraiCrow
Posts: 173
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

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

Post by SamuraiCrow » Mon Jul 16, 2018 5:41 pm

Whoops! I noticed too late that you're using MUI Royale instead of RapaGUI.

User avatar
airsoftsoftwair
Posts: 2626
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

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

Post by airsoftsoftwair » Mon Jul 16, 2018 11:55 pm

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: 9
Joined: Sun Jul 05, 2015 1:29 am

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

Post by NathanH » Wed Aug 08, 2018 2:13 am

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: 9
Joined: Sun Jul 05, 2015 1:29 am

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

Post by NathanH » Wed Aug 08, 2018 2:18 am

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

NathanH

Post Reply