PScrollEvt

This is sent by scrollbars via a PFormHandler::scroll() event.


Synopsis

#include <PLEvt.h>

Derivation

  • PFormEvt
  • PScrollEvt
  • Constructors

        PScrollEvt(const PFormEvt& e);
    
    Constructs a scroll event from a form event.

    Public functions

        Word id() const;
    
    Returns the resource id of the issuing scrollbar.


        PScrollEvt::ScrollType type() const;
    
    Either PScrollEvt::scroll or PScrollEvt::drag for those who are interested.


        Short oldValue() const;
        Short value() const;
    
    The scrollbar value before and after the scrollbar was moved.


        Long time() const;
    
    The time elapsed between the moves (in system ticks).

    Nested Types

        enum ScrollType { scroll = sclExitEvent, drag = sclRepeatEvent };