• Post Reply Bookmark Topic Watch Topic
  • New Topic

Direction of scroll bar  RSS feed

 
Jackie Davis
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I tell in which direction a scrollbar is being moved? I am using a scroll bar to manipulate a simple calculation.

So,



I would be greatful for any ideas

Thanks,

Jackie
 
Sam Codean
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Attach an adjustment Listener to this ScrollBar and then you will get the Adjustment Event. Adjustment event has a method getAdjustmentType()which will give you the type as increment/decrement.
Look into the API for more details.
Hope that Helps!!
[ March 05, 2006: Message edited by: Codean ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!