Methods | Fields | This Package | All Packages

ScrollEventType Class

Defines the constants that specify the type of scroll event that occurred.

Enum
  |
  +--ScrollEventType

package com.ms.wfc.ui

public class ScrollEventType
extends
Enum

Remarks

The scroll event occurs when the user changes the value of a scroll bar. This event can result from a variety of actions, such as clicking a scroll bar arrow or dragging the scroll thumb. Additionally, if the tabStop property of the scroll bar is set to true, keyboard actions (such as pressing the arrow keys) will trigger a scroll event when the scroll bar has focus.

When a scroll event occurs, the associated ScrollEvent object specifies the type of the scroll event and the proposed new value of the scroll bar control. Note that when the scroll thumb is moved to its bottom-most or right-most position, the new value is set to the maximum value minus the large change value plus one. (Note that you can override the new value by explicitly setting the newValue field of the ScrollEvent object in your event handler.)

For information about the WFC event model, see Handling Events in WFC.

See Also   ScrollBar