15 August 2018, 05:01 | #1 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 284
|
#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. |
15 August 2018, 08:47 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,025
|
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.
|
15 August 2018, 11:26 | #3 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 284
|
Thank you for the info!!!
Now I can move on with my program |
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 |
|
|