Download WinBatch User`s Manual - WinBatch Tech Database

Transcript
WinBatch Functions
BoxPen(1,"255,0,0",25)
BoxDrawRect(1,"350,350,650,650", 1)
BoxDrawLine(1, "350,700,800,700")
TimeDelay(5)
See Also:
BoxesUp, BoxNew , BoxColor, BoxTextColor
BoxTextColor
Sets the text color for a WinBatch box.
Syntax:
BoxTextColor(box ID, color)
Parameters:
(i) box ID
(s) color
the ID number of the desired WinBatch box.
text color.
Returns:
(i)
@TRUE on success; @FALSE on failure.
BoxTextColor defines the color of text for a particular box. The default is black.
"Color" is a string in the form: "red, green, blue".
BLACK="0,0,0"
WHITE="255,255,255"
RED="255,0,0"
GREEN="0,255,0"
BLUE="0,0,255"
PURPLE="255,0,255"
YELLOW="255,255,0"
CYAN="0,255,255"
DKGRAY="192,192,192"
GRAY="128,128,128"
DKRED="128,0,0"
DKGREEN="0,128,0"
DKBLUE="0,0,128"
DKPURPLE="128,0,128"
DKYELLOW="128,128,0"
DKCYAN="0,128,128"
Example:
; sample script for BoxTextColor
BoxesUp("200,200,800,800", @normal)
BoxCaption(1, "WinBatch BoxTextColor Example")
x1="0,0,0"
;BLACK
x2="0,0,128"
;DKBLUE
x3="255,0,0"
;RED
x4="0,255,0"
;GREEN
x5="255,0,255"
;PURPLE
x6="255,255,0"
;YELLOW
x7="0,255,255"
;CYAN
for i=1 to 7
BoxTextColor(1,x%i%)
BoxDrawText(1, "0,350,1000,1000", "BoxTextColor", @True, 1)
56