
PT-20 Programming Guide
Get TextBlock current position.
POINT GetTextBlockCur(S32 slBlockNo);
This function can get position in specific TextBlock.
Function success: return the current position.
Function fail: return (-1,-1).
Set specific TextBlock as active TextBlock and set position.
void SetTextBlockCur(S32 slBlockNo,S32 slColumn,S32 slRow)
This function sets active TextBlock become to slBlockNo. The position of
slBlockNo sets to (slColumn, slRow).
Show or hide TextBlock cursor.
void ShowTextBlockCursor(S32 slBlockNo, BOOL bShow, S32 slType)
ShowTextBlockCursor(1,TRUE, 3);
This function defines cursor type. Only the active TextBlock can show
cursor.
TRUE:show cursor
FALSE:Hide cursor
0: Cursor off.
1: Cursor on, and cursor type is a line as _.
2: Cursor on, and cursor type is a line as |.
3: Cursor on, and cursor type is a Window as ■.
Set default background color.
void TextBlock_SetBGColor(S32 slColor);
TextBlock_SetBGColor(COLOR_BLUE);
Commentaires sur ces manuels