Difference between revisions of "ProgressBar2"

From WikiPrizm
Jump to navigationJump to search
(Created page with "{{syscall | name = ProgressBar2 | index = 0x1809 | signature = void ProgressBar2(unsigned char *heading, int current, int max) | header = fxcg/display.h | synopsis = Displays...")
 
 
Line 11: Line 11:
 
| comments = As with [[ProgressBar0]] and [[ProgressBar]], this syscall should be called with '''current''' as zero for initialization, and since it calls [[MsgBoxPush]], the message box must be closed with [[MsgBoxPop]] in order to free resources.
 
| comments = As with [[ProgressBar0]] and [[ProgressBar]], this syscall should be called with '''current''' as zero for initialization, and since it calls [[MsgBoxPush]], the message box must be closed with [[MsgBoxPop]] in order to free resources.
 
}}
 
}}
 +
[[Category:Syscalls:UI elements]]

Latest revision as of 18:07, 18 November 2014


Synopsis

Header: fxcg/display.h
Syscall index: 0x1809
Function signature: void ProgressBar2(unsigned char *heading, int current, int max)

Displays a progress bar on a message box, with a custom heading. Similar to ProgressBar.

Parameters

  • heading - a pointer to a string with the custom text.
  • current - the current value (call with this value set to zero for initialization).
  • max - the maximum value current is expected to take.

Comments

As with ProgressBar0 and ProgressBar, this syscall should be called with current as zero for initialization, and since it calls MsgBoxPush, the message box must be closed with MsgBoxPop in order to free resources.