Submitted by podifferoo on Fri, 04/16/2004 - 21:26.
Hello all.
We are thinking about adding mouse wheel support to OpenMotif.
It seems, that translation tables of XmText, XmScrollBar and XmScrolledWindow should be changed to support new mouse controls.
We should determine default behaviour of the mouse wheels we want to see in OpenMotif.
I investigated this functionality in other toolkits and found the following:
GTK2:
Scrolling 1st wheel
in text widget scrolls text by 3 lines
in vertical and horizontal scroll bars scrolls by 5 steps
Scrolling 1st wheel with Shift, Control or Meta(Alt) key pressed
in text widget scrolls text by 5 lines
in vertical and horizontal scroll bars scrolls by 5 steps
Scrolling 2nd wheel
in text widget scrolls text horizontaly by 30 chars
in vertical and horizontal scroll bars scrolls by 5 steps
Scrolling 2nd wheel with Shift, Control or Meta(Alt) key pressed
in text widget scrolls text horizontaly by 30 chars
in vertical and horizontal scroll bars scrolls by 5 steps
Qt:
Scrolling 1st wheel
in text widget scrolls text by 3 lines
in vertical and horizontal scroll bars scrolls by 3 steps
Scrolling 1st whell with Shift or Control key pressed
in text widget scrolls text by 5 lines
in vertical and horizontal scroll bars scrolls by 5 steps
Scrolling 1st wheel with Meta(Alt) key pressed
in text widget scrolls text horizontally by 3 lines
in vertical and horizontal scroll bars scrolls by 3 steps
Scrolling 2nd wheel
in text widget scrolls text horizontaly by 8 chars
in vertical and horizontal scroll bars scrolls by 3 steps
Scrolling 2nd wheel with Shift or Control key pressed
in text widget scrolls text horizontaly by 1 page
in vertical and horizontal scroll bars scrolls by 5 steps
Scrolling 2nd wheel with Meta(Alt) key pressed
in text widget scrolls text horizontaly by 8 chars
in vertical and horizontal scroll bars scrolls by 3 steps
Windows XP
Scrolling 1st wheel
in text widget scrolls text by 3 lines
in vertical and horizontal scroll bars does nothing
Scrolling 1st wheel with Shift or Control key pressed
in text widget scrolls text does nothing
in vertical and horizontal scroll bars does nothing
Scrolling 1st wheel with Meta(Alt) key pressed
in text widget scrolls text horizontally by 3 lines
in vertical and horizontal scroll bars does nothing
Scrolling 2nd wheel
does the same as the 1st wheel
So, I wonder what the behaviour will be the best _default_ behaviour for OM.
Any ideas?