Graphisoft®

Dialog ManagerVersion: 2.0

Slider::Slider

Class constructor.

Slider (
    const Panel &       panel,
    short               item
);

Constructs the slider bar from resource.

Slider (
    const Panel &       panel,
    const Rect &        rect,
    short               ticks,
    SliderType          type = BottomRight
);

Constructs the slider bar with the given parameters.

Parameters

panel
A reference to the parent panel of the slider bar.
item
The item ID of the slider bar.
rect
A reference to the bounding rectangle of the slider bar.
ticks
The ticks parameter defines the page size of the slider bar by the following formula: pageSize = (max - min) / ticks.
type
The slider bar type.