Graphisoft®

Dialog ManagerVersion: 2.0

ScrollBar::ScrollBar

Class constructor.

ScrollBar (
    const Panel &       panel,
    short               item
);

Constructs the scrollbar from resource.

ScrollBar (
    const Panel &       panel,
    const Rect &        rect,
    ThumbType           thumb = Normal,
    FocusableType       focus = Focusable,
    AutoScrollType      autoScroll = AutoScroll
);

Constructs the scrollbar with the given parameters.

Parameters

panel
A reference to the parent panel of the scrollbar.
item
The item ID of the scrollbar.
rect
A reference to the bounding rectangle of the scrollbar.
thumb
The thumb type of the scrollbar.
focus
The focusable/non-focusable flag of the scrollbar.
autoScroll
The autoscroll/no-autoscroll flag of the scrollbar.