
PT-20 Programming Guide
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) can’t change. TextBlock(1~15) are user defined.
Set TextBlock mode for single or multi layer.
void SetTextBlockMode(int slMode);
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.
slMode = 0, set mode for single layer.
slMode = 1, set mode for multi layer.
int GetTextBlockMode(void);
This function can get the TextBlock mode status.
0:Single mode.
1.Multi mode.
Define TextBlock setting.
BOOL DefineTextBlock(S32 slBlockNo,S32 slSelFont,S32
slBGType,U32* ulBGData,S32 slColumn,S32 slRow,S32 slXPos,S32
slYPos)
DefineTextBlock(1,0,TYPE_IMAGE,(U32*)gausImage_PA20LOGO,10,8,
40,20);
Comentários a estes Manuais