CStatusBar



Implements StatusBar control.

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

class CStatusBar :public virtual IStatusBar, public CControlItemList
{
public:
    RectF getClientRect() override;
    RectF getRenderRect() override;

    bool setAlign(const Align value) override;
    bool setConstraints(const RectF &value) override;
    bool setDPI(const Point &value) override;

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

    IListItemOwner *QueryListItemOwner() override;

    bool InsertItem(IListItem *item, const int before) override;
    bool DeleteItem(const int index) override;
    bool DeleteItem(IListItem *item) override;
    bool DeleteItems() override;

    IListItemStatusPanelLabel *getPanel(const int index) override;
    IListItemStatusPanelLabel *getPanel(const String &name) override;

    CStatusBar();
    CStatusBar(IForm *parent);
    ~CStatusBar() override;

    // Return layout properties 
    RectF getOuterBorderWidth() const;
    RectF getInnerBorderWidth() const;
    RectF getBorderRadius() const;
    BorderColor getOuterBorderColor() const;
    Color getLeftOuterBorderColor() const;
    Color getTopOuterBorderColor() const;
    Color getRightOuterBorderColor() const;
    Color getBottomOuterBorderColor() const;
    BorderColor getInnerBorderColor() const;
    Color getLeftInnerBorderColor() const;
    Color getTopInnerBorderColor() const;
    Color getRightInnerBorderColor() const;
    Color getBottomInnerBorderColor() const;
    Color getBackgroundColor() const;
    Gradient *getBackgroundGradient();
    Color getShadowColor() const;
    PointF getShadowShift() const;
    int getShadowRadius() const;
    float getSeparatorWidth() const;
    Color getSeparatorColor() const;
    Gradient *getSeparatorGradient();

    // Set layout properties 
    bool setOuterBorderWidth(const RectF &value);
    bool setInnerBorderWidth(const RectF &value);
    bool setBorderRadius(const RectF &value);
    bool setOuterBorderColor(const BorderColor &value);
    bool setLeftOuterBorderColor(const Color &value);
    bool setTopOuterBorderColor(const Color &value);
    bool setRightOuterBorderColor(const Color &value);
    bool setBottomOuterBorderColor(const Color &value);
    bool setInnerBorderColor(const BorderColor &value);
    bool setLeftInnerBorderColor(const Color &value);
    bool setTopInnerBorderColor(const Color &value);
    bool setRightInnerBorderColor(const Color &value);
    bool setBottomInnerBorderColor(const Color &value);
    bool setBackgroundColor(const Color &value);
    bool setShadowColor(const Color &value);
    bool setShadowShift(const PointF &value);
    bool setShadowRadius(const int value);
    bool setSeparatorWidth(const float value);
    bool setSeparatorColor(const Color &value);

    bool Add(const String &caption, const float width = 50); // Add new panel 
    bool Insert(const String &caption, const int before, const float width = 50); // Insert new panel before specified one 
};
Namespace: nitisa::standard
Include: Standard/Controls/StatusBar/StatusBar.h