PScrollbar

This class implements new PalmOS 2 scrollbars. To use them, you must use a resource compiler, that supports them. Wes Cherry has released pilrc 1.8, which supports scrollbars, so check his PilRC page, as I am using the new syntax right now (Note: pilrc 1.7 contains a bug, which prevents scrollbars from working).


Synopsis

#include <PLScroll.h>

Derivation

  • PControl
  • PScrollbar
  • Constructors

        PScrollbar(PForm* parent, Word id)
    
    Construct a scrollbar from a resource id as child of parent.

    Public functions

        PScrollbar& val(Short v);
        PScrollbar& minVal(Short v);
        PScrollbar& maxVal(Short v);
        PScrollbar& pageSize(Short v);
        PScrollbar& setValues(Short val, Short min, Short max,
                              Short pageSize);
    
    Sets the scrollbar's properties. minVal should be set to 0. maxVal and pageSize determine the size of the car, val it's position.


        Short val();
        Short minVal();
        Short maxVal();
        Short pageSize();
    
    Query the current scrollbar values (see above).


    See PControl for inherited public functions.