CDialogBox



DialogBox control base class. Derive all your controls which work similarly to form from this class.

You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.

class CDialogBox :public virtual IDialogBox, public CControl
{
protected:
    void Translate(); // Set position according to WindowPosition property
public:
    // IDialogBox getters
    IDialogBoxListener *getListener() override;
    Point getClientSize() override;
    int getClientWidth() override;
    int getClientHeight() override;
    WindowPosition getWindowPosition() override;
    ModalResult getModalResult() override;
    bool isActiveDialogBox() override;
    bool hasComponent(IComponent *component) override; // Return false

    // IDialogBox setters
    void setListener(IDialogBoxListener *value) override;
    bool setWindowPosition(const WindowPosition value) override;
    bool setModalResult(const ModalResult value) override;

    // IDialogBox actions
    bool Show() override;
    bool ShowModal() override;
    bool Close() override;

    CDialogBox(const String &class_name, const bool accept_form, const bool accept_control, const bool accept_focus, const bool tab_stop, const Point &design_dpi, IDialogBoxService *service);
    ~CDialogBox() override;
};
Namespace: nitisa
Include: Nitisa/Core/DialogBox.h