Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How can I add RichTextCtrl to Status bar? #164

@nicesai

Description

@nicesai

How can I add RichTextCtrl to Status bar? And use that instead to show rich text messages?
I cannot add directly using AddFrame as its not a InfoCtrl.

I tried the following and add it to status bar, but its interfering with other status bar functions like progress bar etc.

`

struct RichInfoCtrl : InfoCtrl {
    RichTextCtrl richCtrl;
        
    RichInfoCtrl() {
        richCtrl.HSizePosZ(0, 0).VSizePosZ(0, 0);
        this->Add(richCtrl);
        Set(" "); // to clear default "Ready" text
        richCtrl = "Ready";  // use richtext instead
    }
    
    void SetMsg(String str) {
        richCtrl = str;
    }
};

`

Is there a recommended way to add RichTextCtrl to status bar?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions