Please enable JavaScript to view this site.

Sets an updatable progress bar element in the shell contents.

Syntax

void set_gauge(uint32 id, uint32 min, uint32 max, uint32 cur)

id

Content item ID

min

Minimum value

max

Maximum value

cur

Current value

Result

(none)

Notes

Although the element identifier always remains usable, it could become non-valid due to other factors, such as a content zeroing or a normal content rotation (due to overflow).

At the time the identifier was recycled (after 4 billion elements), inconsistencies could occur.

Esempio di utilizzo:

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..."); // Set state text as "analisi..."

}

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC