PT-20 Programming Guide
84
TextBlock
TextBlock is a floating window printing rectangle area on screen. TextBlock
defines it‟s
activated area anywhere within LCD screen display. A out of display area definition is not
allowed.
Each TextBlock has individual attribute definition for position, size, font , background
color or bmp. There are total 16 TextBlocks. TextBlock(0) is system default Window. The
setting of TextBlock(0) c
an‟t change. TextBlock(1~15) are user defined.
SetTextBlockMode
Purpose
:
Set TextBlock mode for single or multi layer.
Syntax
:
void SetTextBlockMode(int slMode);
Example call
:
SetTextBlockMode(0);
Includes
:
#
include “SDK.h ”
Description
:
This function can set the TextBlock mode for single or multi layer.
Single layer is the same as PT-20, only backup TextBlock in only one
layer. Multi layer can backup each TextBlock in it
‟s buffers.
When you change the mode setting, all the TextBlock will be reset.
Returns
:
None
Notice
:
slMode = 0, set mode for single layer.
slMode = 1, set mode for multi layer.
GetTextBlockMode
Purpose
:
Get TextBlock mode.
Syntax
:
int GetTextBlockMode(void);
Example call
:
GetTextBlockMode();
Includes
:
#include “SDK.h ”
Description
:
This function can get the TextBlock mode status.
Returns
:
0:Single mode.
1.Multi mode.
DefineTextBlock
Purpose
:
Define TextBlock setting.
Syntax
:
BOOL DefineTextBlock(S32 slBlockNo,S32 slSelFont,S32
slBGType,U32* ulBGData,S32 slColumn,S32 slRow,S32 slXPos,S32
slYPos)
Example call
:
DefineTextBlock(1,0,TYPE_IMAGE,(U32*)gausImage_PA20LOGO,10,8,
40,20);
Includes
:
#include “SDK.h ”