Displays in the shell content an updatable text.
Syntax |
uint32 add_text() |
---|---|
Result |
Returns ID of the element created in the content. |
Notes |
Although the element identifier always remains usable, it could become non-valid due to other factors, such as a content reset or a normal content rotation (due to overflow). The moment the identifier is recycled (after 4 billion elements), inconsistencies may occur. |
Example of use:
bool execute(shell::object @shell, const string &in cmdline) { uint32 id_1 = shell.content.add_text(); shell.content.set_text(id_1, "new text"); // Set text as "new text" } |