Sign in
RadiAnt DICOM Viewer - Discussion Forum
Multi button mouse

Jul 11, 2019 07:46 PM
by Lukash
Thank you for great product!
Question - is there sense to buy a mouse with more then 3 buttons?
Can I set a functions for 5 buttons at once (browse, image window, zoom, measurement and pan)?
Jul 12, 2019 02:03 PM
by RadiAnt
RadiAnt only lets you customize the left, middle an right mouse buttons.
Some mouse drivers could possibly let you specify certain macros that you can assign to additional buttons. However, we didn't test such option.
Jul 13, 2019 03:28 PM
by boskar
On the other hand "back" and "forward" buttons are now pretty common and supported since quite a long time in windows, known in the Windows API as XBUTTON1 and XBUTTON2

docs.microsoft.com/en-us/windows/win32/learnwin32/mouse-clicks or docs.microsoft.com/en-us/windows/win32/inputdev/about-mouse-input#xbuttons

I don't know what toolkits are You using (whatever You use - don't change it) but I suppose adding them should be relatively easy (comparing to other complex features requested here).

source.winehq.org/git/wine.git/blob/HEAD:/dlls/winex11.drv/mouse.c could be helpful here.

On the other hand when You touch it it might be worth "making space" for more buttons, for example with dwExtraInfo, but that's "a bit" beyond the API.
forums.highrez.co.uk/viewtopic.php?f=6&t=620&p=2919#p2919 Maybe using game controller as extra hook would be a good idea?
Jul 15, 2019 10:17 AM
by RadiAnt
Please check our latest 5.1.2 BETA, it supports the back/forward mouse buttons.
Jul 15, 2019 01:58 PM
by boskar
It works (tested in wine-4.12.1 staging).
Of course it would be perfect If they are configurable as easily as LMB, MMB and RMB.
Jul 15, 2019 02:02 PM
by boskar
and thank You! : )
Jul 15, 2019 05:24 PM
by RadiAnt
The updated beta (5.1.2.22070) lets you click on the toolbar with the extended buttons and assign specific tools to them.
Jul 17, 2019 05:25 AM
by boskar
Wow, that's really cool. I've never even dreamt about such a quick feature implementation in a closed-source project upon request!

Of course appropriate icons would be appreciated, but that's a minor issue.

All other buttons should be configurable using macros, with sequence like:
OnKeyDown: M ; LMB-down;
OnKeyUp: LMB-up; W..? B? (using default letters). I think there is currently no way to "go back to previously binded action to LMB" which effectively limits the use of macro (LMB must have fixed action in production use, set in the macro). But maybe five is simply enough? In 2D it should be, In MPR/VR up to 7 might be used.

Anyway demand for 5 button mice just significantly increased, at least among my friends.
Jul 21, 2019 06:37 PM
by RadiAnt
You can assign different tools to the mouse buttons depending on what "modifying key" is pressed. You can configure this in the keyboard configuration window. Just type "Mouse" in the top text box.
Post reply
Author (first name or pseudonym):

Message:

Captcha image


Visitors can post messages on the forum without having to register. Please input your first name or pseudonym in the "Author" field. Do not publish any personally identifiable information (PII).

Please ensure you write your posts in English so that our international audience can understand and reply to your message.

The Administrator reserves the right to remove any messages that violate our forum rules; for example, those that are not related to the RadiAnt DICOM Viewer software, published in a language other than English, contravene regulations, etc.