User manual

Automation Protocol Easytext Commands
Miranda Technologies Ltd Page 226
The transparency of the box background can be set with ‘trans’ where 0xFF
is solid colour and 0x00 is transparent.
If the direction variable is 0, the gradient will be vertical; otherwise the
gradient will be horizontal.
The hborder and vborder define the width of the horizontal and vertical
borders placed around the gradient colour block. Border values of 0 will
produce a rectangle which fits behind the rendered text exactly, values of 10
(0x0A) will produce a 10 pixel border around the text rectangle. This
command will take effect only when the text box is re-rendered.
Setting Template background options ZD
As well as specifying backgrounds for individual boxes, it is possible to
specify a background for the entire template. The background size will be the
size of the template created in Text Builder.
Template backgrounds can be a solid colour, with controllable transparency,
or can have transparency that fades in and/or out.
CMD Param_1 Param_2 Param_3 Param_4 Param_5
ZD %01x
Layer No.
%06x
Colour
%02x
Transp
%01x
Mode
%02x
Edgesize
The mode values can be:
0 Solid
1 Fade Down
2 Fade Up
3 Fade Both
4 Fade Edge
For mode 4, the Edge Size parameter determines the width of the faded area.
Example:
void ChangeTextBgnd(int Layer, int Colour,
int Trans, int mode,
int EdgeSize)
{
remote_send ("ZD%01x%06x%02x%01x%02x", layer,
Colour, Trans, mode, EdgeSize);
}