English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 15 August 2018, 05:01   #1
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
#LISTVIEW_KIND gadget and keyboard + mouse

It is not strictly Blitz question but since I write my program in blitz then I ask here.

There are two tags for listview: #GTLV_Selected and #GTLV_Top which I have to use to make keyboard control for that gadget possible.
The problem starts when I use mouse in addition to keyboard: moving the scroll bar doesnt inform me how many items were scrolled. #IDCMP_GADGETUP of ListView gives me only information about selected item.
So the question is: how can I know what the top item of that gadget is after using the scroll bar?
I need that information if I want to get back to keyboard navigation after using the mouse (otherwise selected item may be out of visible area of that list)

Thanks.
peceha is offline  
Old 15 August 2018, 08:47   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
It depends on the version of gadtools.library you use. Since version 39 (Kick 3.0) there is GT_GetGadgetAttrs which lets you retrieve this information from the gadget. In V39 you can also use GTLV_MakeVisible instead of GTLV_Top to let the gadget decide whether the list needs to be moved.
thomas is offline  
Old 15 August 2018, 11:26   #3
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
Thank you for the info!!!
Now I can move on with my program
peceha is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
A4000, mouse clicks, no mouse move, no keyboard OverDose support.Hardware 4 16 March 2011 13:25
Keyboard and mouse trouble Coldwinter support.Hardware 12 29 July 2006 07:07
Gadget/Layout.gadget V44 ruliovega support.Apps 6 02 January 2006 11:50
Keyboard/mouse probs! stainy support.WinUAE 0 23 July 2004 18:05
rpg mouse+keyboard corchians support.Games 1 28 March 2003 21:04

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:02.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11406 seconds with 15 queries