Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Vertical scale control: up is down and down is up
Vertical scale control: up is down and down is up [message #450303] Wed, 09 February 2005 22:47 Go to next message
Paul Murphy is currently offline Paul MurphyFriend
Messages: 33
Registered: July 2009
Member
I've noticed that with my vertical scale controls, the top most position
of the marker yeilds a selection value of 1, and the bottom most
position yeilds 100. I would expect the highest position to have the
highest value.

I think a user would too. If I'm a user and moving a control up and
down, I'd expect the value that the control represents to move up and
down as well. As a programmer, this puts me in a position of
reinterpreting the value of the scale control to be "what the user
meant" instead of simply reading it raw.

I think perhaps the reason this is implemented in this way is that the
scale is a similar control to the scroll bar. In a scroll bar, down
means "further along in the document", which would mean a higher value
the further down the control was set. So perhaps scale inherited some
functionality from scroll?

Can anyone shed any light on this for me?

Thanks, Paul
Re: Vertical scale control: up is down and down is up [message #450357 is a reply to message #450303] Thu, 10 February 2005 19:03 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
All of the platforms do it this way natively so we just didn't fight it.

"pmurphy" <pmurphy@dimensional.com> wrote in message
news:cue3sr$tbo$1@www.eclipse.org...
> I've noticed that with my vertical scale controls, the top most position
> of the marker yeilds a selection value of 1, and the bottom most
> position yeilds 100. I would expect the highest position to have the
> highest value.
>
> I think a user would too. If I'm a user and moving a control up and
> down, I'd expect the value that the control represents to move up and
> down as well. As a programmer, this puts me in a position of
> reinterpreting the value of the scale control to be "what the user
> meant" instead of simply reading it raw.
>
> I think perhaps the reason this is implemented in this way is that the
> scale is a similar control to the scroll bar. In a scroll bar, down
> means "further along in the document", which would mean a higher value
> the further down the control was set. So perhaps scale inherited some
> functionality from scroll?
>
> Can anyone shed any light on this for me?
>
> Thanks, Paul
Previous Topic:keyPressed events stop firing on Linux
Next Topic:Creating another run dialog
Goto Forum:
  


Current Time: Thu Apr 25 07:11:42 GMT 2024

Powered by FUDForum. Page generated in 0.03213 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top