Download User Manual

Transcript
Frame structure: FB_EDITBOX01
-- kACS_IDLE = no effect
-- kACS_INIT = first draw on display
accMode
Output
variable
outKey
byte
-- kACS_PRINT = update draw on display
-- kACS_SELECT = update draw on display when
selected
-- kACS_MODIFY = enter in editing mode
Type
char
Description
Key code for exiting editing-mode.
FUNCTION BLOCK: TextBox
Text box object
Local variables
memVis
Frame structure: FB_TEXTBOX
Type
byte
Description
Visibility status of the previous execution.
base
word16
Number of first line seen in object.
wHnd
word16
Handle of the object. Must be unique among
textbox objects.
x1
word16
Top-left 'x coordinate' edge relative to full
page.
y1
word16
Top-left 'y coordinate' edge relative to full
page.
x2
word16
Bottom-right 'x coordinate' edge relative to
full page.
y2
word16
Bottom-right 'y coordinate' edge relative to
full page.
pFont
word32
Address of font for drawing text. The font
must be initialized with Video_AddFont.
Input variables
Type
Description
-- 0 = flat
style
byte
-- 1 = raised
foreCol
byte
Text color.
bordPts
byte
Border thickness It is sensible only if
style = 0
bordCol
byte
LineNr
byte
rw
byte
pVar
word32
bckCol
szpVar
124
byte
word32
-- 2 = sunken
Background color.
Border color. It is sensible when style = 0
bordPts > 0
-- FALSE = hide line number
-- TRUE = show line number
-- FALSE= read-only mode
-- TRUE= read-write mode
Address of string variable. It cannot be NULL.
Size of pVar.
PageLab user manual