GuiReferenceSetCurrentTaskProgress

Sets the percentage bar and some status text in the current Reference View instance. This can indicate to the user that an operation is taking place, e.g. searching/sorting.

void GuiReferenceSetCurrentTaskProgress(int progress, const char* taskTitle);

参数

progress An integer representing the value of the percentage bar.

taskTitle A const char representing a text string to indicate status or progress to the user.

返回值

此函数不返回值。

示例

GuiReferenceSetCurrentTaskProgress(0,"Starting Search, Please Wait..."); // do something GuiReferenceSetCurrentTaskProgress(50,"Searching, Please Wait..."); // do something else GuiReferenceSetCurrentTaskProgress(100,"Finished Searching."); // finished