On Friday 02 March 2001 08:39, you wrote:
> On Thu, 1 Mar 2001, Lyle Johnson wrote:
> > Attached are patches against fox-0.99.161 for FXDial.cpp and FXDial.h to
> > enable mousewheel support for the dial widget. The main thing that still
> > deserves tweaking (and perhaps some kind of programmatic control?) is the
> > amount to spin the dial in response to a spin of the mousewheel;
> > currently it spins the dial 1/36 of a full revolution for every nudge of
> > the mousewheel.
>
> Have you considered adjusting the amount of spin based upon the
> speed of the mousewheel? In other words, if the time delay between
> each click of the mousewheel is less than a certain amount (user
> spins it fast), the dial moves more for each click, whereas if the
> time delay is greater (user spins it slowly) the dial moves less for
> each click (fine adjustment). This is similar to mouse pointer
> acceleration.
When using the wheel for scrolling, it actually generates a bunch of intermediate
scroll positions based on the difference between the desired and current
position. This causes the content to scroll smoothly.
I had a devil of a time getting it so that regardless of moving 3 notches
quickly, or slowly, you would end up in the same place. But that is clearly
desired.
I think after everyone had some time to play with Lyle's change, I may add
a similar "animated" change to the dial widget. Again, it is visually attractive
to go through the intermediate positions, but one will always have to make sure
the rotation ends exactly at the same place regardless of how fast one rolls the
wheel.
The intermediate positions generated by the animation mode send SEL_CHANGED
messages only, btw.
- Jeroen
--
+-------------------------------+--------------------------------------------+
| E-Mail : jvz@... | The FOX Platform Independent GUI Toolkit: |
| USMail : 215 Wynn Drive, | |
| Huntsville, AL 35805 | Official Site: |
| Phone : (256) 726-4820 | http://www.cfdrc.com/FOX/fox.html |
| Fax : (256) 726-4806 | ftp://ftp.cfdrc.com/pub/FOX |
| WWW : http://www.cfdrc.com | |
+-------------------------------+--------------------------------------------+
| Copyright (C) 09:20 03/ 2/2001 Jeroen van der Zijp. All Rights Reserved. |
+----------------------------------------------------------------------------+
|