User manual
Automation Protocol Easytext Commands
Miranda Technologies Ltd Page 225
The transparency of the colour can be set with ‘trans’ where 0xFF is solid
colour and 0x00 is transparent.
The horizontal border and vertical border parameters describe the horizontal
and vertical border placed around the colour block. Border values of 0 will
produce a rectangle which fits behind the rendered text exactly. Values of 10
(0x0A) would produce a 10 pixel border outside the text rectangle.
This command will take effect only when the text box is re-rendered.
Set Text Background to Gradient Z7
This command allows a gradient background behind a box to be
automatically drawn (and resized) when the box is drawn
CMD Param_1 Param_2 Param_3 Param_4 Param_5
Z7 %01x
Layer No.
%02x
Box No.
%06x
Source
Colour
%06x
Dest.
Colour
%06x
Border
Colour
Param_6 Param_7 Param_8 Param_9 Param_10
%02x
Trans.
%02x
Border
Width
%03x
Direction
%02x
Horiz.
Border
%02x
Vert.
Border
Example:
void TextBgnd_Gradient(int Layer, int BoxNo,
int SourceCol, int DestCol,
int BorderCol, int Trans,
int BorderWidth, int Dir,
int hborder, int vborder)
{
remote_send("Z7%01x%02x%06x%06x%06x%02x%02x%03x"
"%02x%02x", Layer, BoxNo, SourceCol,
DestCol, BorderCol, Trans,
BorderWidth, Dir, HBorder, VBorder);
}
The gradient starts from the source colour, and finishes at the destination
colour.
The border colour is drawn around the gradient-filled text box.