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.
The Motif container widget do not support scroll notification. This event is not dispatched in AIX.
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.
You can construct and destruct objects of this class.
![]() |
public:
virtual ~ICnrScrollEvent()
Windows | OS/2 | AIX |
Yes | Yes | Ignored |
![]() |
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.
Windows | OS/2 | AIX |
Yes | Yes | Ignored |
Use these members to query and set the accessible attributes of this class.
![]() |
public:
long amount() const
Returns the amount the window has scrolled, in pixels.
Windows | OS/2 | AIX |
Yes | Yes | Ignored |
![]() |
public:
bool isHorizontal() const
If scrolling in the horizontal direction, true is returned.
Windows | OS/2 | AIX |
Yes | Yes | Ignored |
![]() |
public:
bool isLeftDetails() const
If the scrolling occurred in the left (or only) side of the details view, true is returned.
Windows | OS/2 | AIX |
Yes | Yes | Ignored |
![]() |
public:
bool isRightDetails() const
If the scrolling occurred in the right side of a split details view, true is returned.
Windows | OS/2 | AIX |
Yes | Yes | Ignored |
![]() |
public:
bool isVertical() const
If scrolling occurred in the vertical direction, true is returned.
Windows | OS/2 | AIX |
Yes | Yes | Ignored |
virtual ~ICnrEvent()
ICnrEvent(const IControlEvent& event)
virtual ~IControlEvent()
virtual unsigned long controlId() const
IControlEvent(const IEvent& event)
IControlEvent(const IControlEvent& event)
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
unsigned long containerId() const