
UbiQ Scenario Manager User Manual
80
5.2.27
ShowText
Syntax
void ShowText(int nType, int nX, int nY, int nStyle, string sText)
Parameters
nType: Specifies the type of text. The value 1 is for the notification text.
nX: Specifies the beginning x-coordinate of text.
nY: Specifies the beginning y-coordinate of text.
nStyle: Specifies the style of display text. Please set to 0.
sText: pecifies the display string of text.
Description
This function set the help window on the specified coordinate when entering
configuration mode.
Example
string sMsg;
sMsg=”Please check the input pin is OK or not”;
ShowText(1,0,0,0,sMsg);
See Also
HelpWindow, LoadBMP, LoadBMPByValue
5.2.28
Sleep
Syntax
void Sleep(int nMilliseconds)
Parameters
nMilliseconds :Specifies the time, in milliseconds, for which to suspend execu-
tion. A value of zero causes the thread to relinquish the remainder of its time
slice to any other thread of equal priority that is ready to run. If there are no
other threads of equal priority ready to run, the function returns immediately,
and the thread continues execution.
Description
This function suspends the execution of the current thread for a specified inter-
val.
Example
int nI;
setdebug(TRUE);
for (nI=0;nI<500;nI=nI+1) {
Sleep(1000);
debug(“Sleep “,nI,” mini-second”);
}
See Also
Summary of Contents for UbiQ
Page 1: ...User Manual UbiQ Scenario Manager User Manual V1 03...
Page 4: ...UbiQ Scenario Manager User Manual iv...
Page 7: ...Chapter 1 1 Introduction...
Page 13: ...Chapter 2 2 Getting Started...
Page 37: ...Chapter 3 3 Tutorials...
Page 47: ...Chapter 4 4 Basic of Smart C Script Language...
Page 62: ...UbiQ Scenario Manager User Manual 56...