THtmlViewer supports color and background information attributes entered with the HTML <body> tag. Thus each document may have a customized appearance. Color and background information entered in this manner overrides the default information specified by the DefFontColor, DefHotSpotColor, DefBackground, DefVisitedLinkColor, DefOverLinkColor properties.
The following <body> attributes are supported in this version:
Text="RRGGBB"
The hex number entered determines the normal text color.
Link="RRGGBB"
The hex number entered determines the link (HotSpot) color.
VLink="RRGGBB"
The hex number entered determines the color of a link which has been previously visited.
OLink="RRGGBB"
The hex number entered determines the link color when the mouse passes over it. A defined OLink value will make the links active even if fvOverLinksActive or htOverLinksActive are not set..
BgColor="RRGGBB"
The hex number entered determines the background color.
Background="imagefilename"
The Background attribute specifies an image file. When ViewImages is set, this image will be tiled to form the background of the document.
HTML hex entries are 2 digits of red, 2 digits of green, and 2 digits of blue. Note that this order is the reverse of normal color entries in Windows. Also, most HTML browsers require all six digits including leading zeros.
<body text="00FF00" link="FF0000"
bgcolor="000000" background="marble.gif">
produces green text, red hotspots on a black background. If ViewImages is set, marble.gif will be tiled to form the background.