English Amiga Board


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

 
 
Thread Tools
Old 30 October 2023, 14:27   #1
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,180
Unexpected Scrollbar/Mousewheel Behaviour

So I recently started on a new project to create another companion GUI that uses UHC Tools/AGet to scrape information to let Amiga users actually see new titles on ITCH.IO that many people might not even know exist, probably because we have nothing native i am aware of that tells us as such.

its early days, literally 2 days at this point and ive pretty much just got a "concept" idea working, ti tends to crash a lot because ofc it does when you rush together an idea just to see if it can work, but i am narrowing down issues, mostly due to scraping html sources and often not gettin gback the results i would expect.

However once i got the basics in place i noticed strange behaviour for the 2 listview gadgets i used, my previous GUI uses listviews but they are listed side by side and work perfectly fine. In this GUI 1 listview is stacked under the other and this is where things get weird.

I have included a video showing the weird behaviour and my question/query here is what is the cause? is it something i forgot in my code? some IDCMP flag i forgot or something? is it OS3.2? is it (and i hope its as simple as this) the FreeWheel commodity getting confused?

[ Show youtube player ]

When i use the mousewheel to scroll in the top most listview it works provided i am within the confines of the listview, if i then move down to the listview underneath it, the lower listview shoudl scroll but it does not, the one above scrolls, if i stay in the lower listview but move out of the horizontal range of the listview above then the lower listview scrolls as it should.

If i then move to where my image/thumbnail picture is which is to the right of the top listview and top/right of the lower listview, neither listview should be affected but both end up scrolling when i use the mousewheel.

any guesses whats going wrong here?
DisasterIncarna is offline  
Old 30 October 2023, 14:35   #2
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,348
Looks like an excellent program is that using MUI? I have a feeling Freewheel is at least partially to blame here. It can confuse things by acting on windows that it thinks don't have mousewheel support, but of course 3.2 includes the support so you get two different sets of scroll input in such windows. If you disable Freewheel does it behave better?

It might be worth looking at the 3.2 NDK to get the IDCMP codes used for the mouse scroll event and seeing if adding them to the window helps. Also, if it's MUI, it has its own separate mousewheel support so it might be worth playing with the MUI settings for that and see if it can be helped.
Daedalus is offline  
Old 30 October 2023, 14:39   #3
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,180
bog standard Gadtools in use, ive never actually tried MUI before, ill try disabling freewheel, i cant even remember when/where i installed that, its 1 of those things that i might have transferred over from an old OS3.1 install, unless 3.2 installed it as well?

Ill have a play with that and hunt out the IDCMP code you mentioned, see, as you said if it makes a difference as well.
DisasterIncarna is offline  
Old 30 October 2023, 14:47   #4
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,180
ok so the quickest test, which is disabling FreeWheel gives me a weird result as well.

Disabled, my listviews do not scroll when i mouse over them, if i move away from both into the thumbnail picture area and use the mousewheel then the top listview scrolls...
DisasterIncarna is offline  
Old 30 October 2023, 15:18   #5
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,348
Hmmm, I don't know enough about how GadTools handles the mousewheel events in 3.2, but I suspect there's a gadget that inherits the window scrolling action or something like that, and your left-hand listview is the one where that happens. Perhaps the 3.2 NDK will also explain what goes on there... If not, it might be worth asking in one of the OS boards in here, as the 3.2 devs are less likely to see a Blitz-specific thread.

Freewheel is a 3rd party commodity that translates mousewheel events into scroll up / scroll down movements for items that don't natively support mousewheel events. It's normally installed in WBStartup.
Daedalus is offline  
Old 31 October 2023, 08:39   #6
aros-sg
Registered User
 
Join Date: Nov 2015
Location: Italy
Posts: 191
What happens if you use cursor up/down instead of mouse wheel? Don't know about 3.2 but mouse wheel used to only end up as cursor up/down IDCMP_RAWKEY on the application side. Do you have custom keyboard/cursor control in your program that scrolls the listview?
aros-sg is offline  
Old 31 October 2023, 09:31   #7
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,180
Quote:
Originally Posted by aros-sg View Post
What happens if you use cursor up/down instead of mouse wheel? Don't know about 3.2 but mouse wheel used to only end up as cursor up/down IDCMP_RAWKEY on the application side. Do you have custom keyboard/cursor control in your program that scrolls the listview?
not yet but its on the to-do list for much later.
DisasterIncarna 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
BUG: OS3.2.x MouseWheel handling. hceline support.AmigaOS 0 28 December 2022 19:54
Scroll by mousewheel in OS3.2 elowan support.WinUAE 11 09 December 2022 05:26
Unexpected details of quality in games JudasEZT Nostalgia & memories 60 02 December 2016 23:51
WinUAE 1.5.2 flew unexpected crashes Thom87 support.WinUAE 7 27 September 2008 17:40
Unexpected extras in HOL Boxscans DDNI HOL suggestions and feedback 0 23 August 2006 15:09

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 12:10.

Top

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