newObjects Active Label Active Label colors
The colors in Active Label are specified as 3 components Red, Green and Blue combined in a long integer number value in reverse order. For example Red color will be encoded in hexdecimal number as 0x0000FF, Green will be 0x00FF00 and Blue will be 0xFF0000.

These values can be assigned to color related properties at run-time (from a script on a HTML page for example) or when generating Active Label files (see Data, file and command formats). When the files are saved by the ActiveX the colors are encoded with decimal numbers, but you can use hexdecimal numbers in their place - which is especially convenient when the WEB application generates the label design. For example the following label:

 

has 3 text labels with different text colors. If you create it interactively in the Active Label Browser or on a WEB page that allows label editing it is saved as:

VL01VISILABEL:1,0:,LabelUID={34A90B0E-BC9A-499C-8753-2CC19B0A6F27},POST:New label 5165796
LAYOUT:6000,6000,200,200,200,200:-1,16777215,0,0,0,8388608:-1,8421504,0,0,0,8388608,1
PAGE:0,0,1000,1000,1000,1000,500,500
MISC:0,1,2,0,0
EDIT:-1,1,-1,100,0,0
TEXTDEFAULTS:1,-1,Arial,1,0,0,0,0,0
LABEL:Blue:600,2250,16711680,16777215,-1,-1,Arial,725,1,-1,0,0,0:Blue:0,0,0,
LABEL:Red:575,625,255,16777215,-1,-1,Arial,725,1,-1,0,0,0:Red:0,0,0,
LABEL:Green:575,1450,65280,16777215,-1,-1,Arial,725,1,-1,0,0,0:Green:0,0,0,
DATASOURCE:1,1,0:0,,,,

But the same result will be achieved if you put hexdecimal numbers for the text colors:

VL01VISILABEL:1,0:,LabelUID={34A90B0E-BC9A-499C-8753-2CC19B0A6F27},POST:New label 5165796
LAYOUT:6000,6000,200,200,200,200:-1,16777215,0,0,0,8388608:-1,8421504,0,0,0,8388608,1
PAGE:0,0,1000,1000,1000,1000,500,500
MISC:0,1,2,0,0
EDIT:-1,1,-1,100,0,0
TEXTDEFAULTS:1,-1,Arial,1,0,0,0,0,0
LABEL:Blue:600,2250,0xFF0000,16777215,-1,-1,Arial,725,1,-1,0,0,0:Blue:0,0,0,
LABEL:Red:575,625,0x0000FF,16777215,-1,-1,Arial,725,1,-1,0,0,0:Red:0,0,0,
LABEL:Green:575,1450,0x00FF00,16777215,-1,-1,Arial,725,1,-1,0,0,0:Green:0,0,0,
DATASOURCE:1,1,0:0,,,,

Thus you can use whichever is more convenient - decimal or hexdecimal numbers.

This rule applies to all the color related values used by the Active Label - for the elements, the label itself and so on.

newObjects Copyright 2001-2006 newObjects [ ]