CScrollBox



Implements ScrollBox control.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CScrollBox :public virtual IScrollBox, public CControl
{
public:
    RectF getClientRect() override;
    IControl *getControl(const int index) override;
    IControl *getControl(const String &name) override;
    IControl *getControl(const PointF &position) override;
    bool isAcceptBubbledEvents() override;

    bool setTransformControls(ITransform *value) override;
    bool setDPI(const Point &value) override;

    // IControl methods 
    void Refresh(const bool refresh_children) override;

    ScrollVisibility getVerticalScrollVisibility() override;
    bool isVerticalScrollEnabled() override;
    float getVerticalScrollMax() override;
    float getVerticalScrollPosition() override;
    ScrollVisibility getHorizontalScrollVisibility() override;
    bool isHorizontalScrollEnabled() override;
    float getHorizontalScrollMax() override;
    float getHorizontalScrollPosition() override;

    bool setVerticalScrollVisibility(const ScrollVisibility value) override;
    bool setVerticalScrollPosition(const float value) override;
    bool setHorizontalScrollVisibility(const ScrollVisibility value) override;
    bool setHorizontalScrollPosition(const float value) override;

    CScrollBox();
    CScrollBox(IControl *parent);
    CScrollBox(IForm *parent);
    ~CScrollBox() override;

    // Return layout properties 
    Color getBackgroundColor() const;
    Gradient *getBackgroundGradient();
    PointF getPadding() const;

    bool setVerticalScroll(IBuiltInScroll *value); // Set vertical scroll 
    bool setHorizontalScroll(IBuiltInScroll *value); // Set horizontal scroll 
    // Set layout properties 
    bool setBackgroundColor(const Color &value);
    bool setPadding(const PointF &value);
};
Namespace: nitisa::standard
Include: Standard/Controls/ScrollBox/ScrollBox.h