Hi.
I see inputText sample in 3dRad. Now I add Blinking cursor before type any character. I want after type any character The cursor move to right. I tried to move it with iStringRight(string,string,int) function but I can't do it.
I need more Explanation about this Line:
I see inputText sample in 3dRad. Now I add Blinking cursor before type any character. I want after type any character The cursor move to right. I tried to move it with iStringRight(string,string,int) function but I can't do it.
Code: [Select]
string strText;
string strI = "I";
void Main()
{
OUT_22=iFloatRand(0,1.5);
iPrint(strI,-3,-1.2,OBJ_22);
if (iInitializing())
{
strText = "";
}
int c = iTypedChar(true);
if (c > 0)
{
strText += " ";
strText[iStringLen(strText)-1] = c;
}
if (c == -2)
{
//back-space was pressed
iStringLeft(strText,strText,iStringLen(strText)-1);
}
if (c == -1)
{
//enter was pressed
strText = "";
}
iObjectTextSet(OBJ_66,strText);
}
I need more Explanation about this Line:
Code: [Select]
strText += " ";
strText[iStringLen(strText)-1]
Thanks