
PT-20 Programming Guide
The DefineTextBlock function defines font,background graph,size and
position. There are total 15 Windows.
Defined Font:
0~1 system font and 2~9 user font.
TYPE_COLOR -using background color.
TYPE_IMAGE -using background bmp.
TYPE_ORIGINAL –using default background.
pointer of background color or bmp.
TextBlock left-top X position in pixel(0~239).
TextBlock left-top Y position in pixel.
Status Bar enable:0~295.
Status Bar disable:0~319.
TRUE : success
FALSE : fail
It must define user font(2~9) before select user font number(2~9). The
function define a TextBlock start at point(slXPos,slYPos) , width equal to
slColumn * FontSize(width) and height equal to slRow * FontSize(height).
The TextBlock also has background color or bmp and the specific font.
Enable the specific TextBlock.
BOOL SetTextBlock(S32 slBlockNo,BOOL bSF);
This function will assign TextBlock area attribute and optionally store
existing screen in TextBlock occupied area. This TextBlock will become
the active TextBlock. A regular print function is assigned to this TextBlock.
Save flag for save screen or not.
TRUE : success
FALSE : fail
When sets Multi layer mode, every TextBlocks will save their screens,
whatever “bSF” is TRUE or FALSE.
Disable the specific TextBlock.
void ResetTextBlock (S32 slBlockNo);
Komentáře k této Příručce