BBC BASIC for Windows
« Add middle mouse button scroll functionality »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:52pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Add middle mouse button scroll functionality  (Read 897 times)
Michael Hutton
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 248
xx Add middle mouse button scroll functionality
« Thread started on: Nov 13th, 2010, 12:51pm »

Hi Richard,

Feature request:

I was wondering how 'easy' it would be to add the scroll function you see with for example IE* when you press the middle mouse button and use the mouse to scroll up and down a program in the IDE.

Just a feature which may or may not be easy to implement but some may find useful.

Michael
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Add middle mouse button scroll functionality
« Reply #1 on: Nov 13th, 2010, 5:07pm »

on Nov 13th, 2010, 12:51pm, Michael Hutton wrote:
I was wondering how 'easy' it would be to add the scroll function you see with for example IE* when you press the middle mouse button and use the mouse to scroll up and down a program in the IDE.

I really have no idea; I never use that feature myself. I would guess it could be quite difficult to match the behaviour of IE etc., which would be important to avoid it feeling 'wrong'. You're the only person ever to have suggested it, as far as I can recall.

The structure of the BB4W editor would make it quite tricky to implement the feature whereby moving the mouse leaves behind a 'greyed out' version of the cursor, which stays where the mouse was when the middle button was clicked (unless there's support for that at the OS level, which I'm not aware of).

Incidentally, since Rich Edit Controls support the middle-button scroll feature you get it for free with Module Viewer, but of course only for the INSTALLed modules, not the main program!

Richard.
User IP Logged

KenDown
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 181
xx Re: Add middle mouse button scroll functionality
« Reply #2 on: Nov 10th, 2011, 09:37am »

The discussion has long moved on, no doubt, but for future reference if anyone is interested:

If you press the middle scroll wheel (ie. click with it) it generates the same code as the Acorn mouse. Thus

MOUSEx%,y%,b%

would return a value of b%=2

However if you rotate the middle scroll wheel, then this generates the codes 140 and 141 which can be picked up with

g%=GET

and it is up to your program to take the appropriate action for those codes.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls