Settextblock, Resettextblock – Argox PA-20 Programming Guide User Manual

Page 87

Advertising
background image

PT-20 Programming Guide

85

Description: The DefineTextBlock function defines font,background graph,size and

position. There are total 15 Windows.

slBlockNo

TextBlock number(1~15).

slSelFont

Defined Font:

0~1 system font and 2~9 user font.

slBGType

TYPE_COLOR -using background color.

TYPE_IMAGE -using background bmp.

TYPE_ORIGINAL

–using default background.

ulBGData

pointer of background color or bmp.

slColumn

TextBlock column number.

slRow

TextBlock row number.

slXPos

TextBlock left-top X position in pixel(0~239).

slYPos

TextBlock left-top Y position in pixel.

Status Bar enable:0~295.

Status Bar disable:0~319.

Returns: TRUE : success

FALSE : fail

Notice: 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.

SetTextBlock

Purpose: Enable the specific TextBlock.

Syntax: BOOL SetTextBlock(S32 slBlockNo,BOOL bSF);

Example call: SetTextBlock(1,TRUE);

Includes:

#include “SDK.h ”

Description: 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.

slBlockNo

TextBlock number(1~15).

bSF

Save flag for save screen or not.

Returns: TRUE : success

FALSE : fail

Notice: When sets Multi layer mode, every TextBlocks will save their screens,

whatever

“bSF” is TRUE or FALSE.

ResetTextBlock

Purpose: Disable the specific TextBlock.

Syntax: void ResetTextBlock (S32 slBlockNo);

Advertising