Displays in the shell contents an updatable progress bar.
Syntax |
uint32 add_gauge() |
---|---|
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_gauge(); shell.content.set_gauge(id_1, 0, 100, 44); // Set value at 44% shell.content.set_text(id_1, "analisi..."); // Text state text as "analisi..." } |