### ICnrScrollEvent

  The ICnrScrollEvent class retrieves information about a container scroll event. Objects of this class are dispatched when scrolling is requested in the container. These events are created in response to a notification from the container that one of the container's windows has been scrolled.

#### AIX Considerations

  The Motif container widget do not support scroll notification. This event is not dispatched in AIX.

#### Windows Considerations

  The native Windows containers (that is, containers constructed without the pmCompatible style) do not support scroll notification. This event is not used in this case.

### ICnrScrollEvent - Member Functions and Data by Group

### Constructors & Destructor

You can construct and destruct objects of this class.

~ICnrScrollEvent

      public:
      virtual ~ICnrScrollEvent()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Ignored

ICnrScrollEvent

      public:
      ICnrScrollEvent(const IControlEvent& event)

  Although you can construct objects of this class, typically ICnrHandler::dispatchHandlerEvent creates objects of this class from an object of the class IControlEvent in response to a notification from the container that one of the container's windows has been scrolled.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Ignored

### Event Information

Use these members to query and set the accessible attributes of this class.

amount

      public:
      long amount() const

  Returns the amount the window has scrolled, in pixels.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Ignored

isHorizontal

      public:
      bool isHorizontal() const

  If scrolling in the horizontal direction, true is returned.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Ignored

isLeftDetails

      public:
      bool isLeftDetails() const

  If the scrolling occurred in the left (or only) side of the details view, true is returned.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Ignored

isRightDetails

      public:
      bool isRightDetails() const

  If the scrolling occurred in the right side of a split details view, true is returned.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Ignored

isVertical

      public:
      bool isVertical() const

  If scrolling occurred in the vertical direction, true is returned.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Ignored

### ICnrScrollEvent - Inherited Member Functions and Data

#### Inherited Public Functions

  ICnrEvent

  -     virtual ~ICnrEvent()

  -     ICnrEvent(const IControlEvent& event)

  IControlEvent

  -     virtual ~IControlEvent()

  -     virtual unsigned long controlId() const

  -     IControlEvent(const IEvent& event)

  -     IControlEvent(const IControlEvent& event)

  IEvent

  -     virtual ~IEvent()

  -     IWindowHandle controlHandle() const

  -     virtual IWindow* controlWindow() const

  -     IEvent& decrementOwnerLevels()

  -     virtual IWindow* dispatchingWindow() const

  -     unsigned long eventId() const

  -     IWindowHandle handle() const

  -     IEvent(const IEvent& event)

  -     IEvent( IWindow* window,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent( const IWindowHandle& handle,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent& operator =(const IEvent& event)

  -     IEventParameter1 parameter1() const

  -     IEventParameter2 parameter2() const

  -     bool passToOwner() const

  -     IEventResult result() const

  -     IEvent& setControlHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingWindow(IWindow* window)

  -     IEvent& setHandle(const IWindowHandle& handle)

  -     IEvent& setNumberOfLevels(int levels = - 1)

  -     IEvent& setPassToOwner(bool passOn = true)

  -     IEvent& setResult(bool eventResult)

  -     IEvent& setResult(const IEventResult& eventResult)

  -     virtual IWindow* window() const

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  ICnrEvent

  -     unsigned long containerId() const

#### Inherited Protected Data

  - None