beautypg.com

Argox PA-20 Basic Programming Manual User Manual

Page 75

background image

PT-Basic Programming Manual Ver. 1.00

74/143

TEXTBLOCK_SETBGIMAGE

Purpose: To set default background image for bitmap file.

Syntax: A%= TEXTBLOCK_SETBGIMAGE(FilePath$)

Example: R%=TEXTBLOCK_SETBGIMAGE("d:\program\test.bmp")

Description: A% is an integer variable to be assigned to the result.

A%

Meaning

0

Setting fail

1

Setting OK

FilePath $ is a string variable, indicating the bitmap file path.

After executing this command, all TextBlock will be reset.

TEXTBLOCK_MODE

Purpose: To set or get TextBlock mode for single or multi layer.

Syntax: TEXTBLOCK_MODE = A%

X% = TEXTBLOCK_MODE

Example: TEXTBLOCK_MODE=1


PRINT “TEXTBLOCK_MODE:”; TEXTBLOCK_MODE

Description: A% is an integer variable to be assigned as the TextBlock

mode..

X% is an integer variable indicating the TextBlock mode.

A% or X%

Meaning

0

single layer

1

multi layer

SWITCHTEXTBLOCK

Purpose: To switch TextBlock.

Syntax: A%=SWITCHTEXTBLOCK(BlockNo %)

Example: A%=SWITCHTEXTBLOCK(1)

Description: A% is an integer variable to be assigned to the result.

A%

Meaning

0

Switch fail.

1

Switch success.

BlockNo% is an integer variable in the range from 0 to 15.