HTML Widget Resources
-
activeAnchorFG
- Color to flash the foreground of an anchor that has been clicked on.
-
activeAnchorBG
- Color to flash the background of an anchor that has been clicked on.
-
addressFont
- The font to use for addresses (<ADDRESS> tag).
- Default: "-adobe-times-medium-i-normal-*-14-*-*-*-*-*-*-*"
-
anchorCallback
- The callback list for callbacks to call when an anchor is activated. Anchors are activated by a single click of either button1 or button2. If there is too much time or movement between the button press and release an activate does not occur.
-
anchorColor
- Color to use when drawing anchor text.
-
anchorUnderlines
- How many times to underline anchor text. (Valid values 0-3)
-
autoSize
- Boolean. If true the widget will always try to size itself to whatever size is necessary to fully display itself. The preferred width is the width of the widest preformatted line. The preferred height is the full height of the document (usually quite tall). If false the user has full control of the widget's dimensions.
-
boldFont
- The font to use for bold text.
- Default: "-adobe-times-bold-r-normal-*-14-*-*-*-*-*-*-*"
-
currentPage
- Contains the value of the current page being displayed. Page numbers start at 1.
-
dashedAnchorUnderlines
- Boolean. True means draw dashed underlines, false means draw solid.
-
dashedVisitedAnchorUnderlines
- Boolean. True means draw dashed underlines, false means draw solid.
-
documentPageCallback
- This is the callback list of calls to make when the user moves to a new page within the document. Because X will not allow windows taller that 32768 pixels, some documents will be too tall if autoSize is true. To avoid this, tall documents are split into pages, and links to move around to pages are automatically inserted as internal anchors. This is the callback called whenever one of those internal anchors is activated.
-
fancySelections
- Boolean. If true selected text when pasted will try to look as much like the formatted text as possible by underlining headers, and putting in 'o' characters for bullets.
-
fixedFont
- The font to use for fixed width text.
- Default: "-adobe-courier-medium-r-normal-*-14-*-*-*-*-*-*-*"
-
font
- The font to use for normal text.
- Default: "-adobe-times-medium-r-normal-*-14-*-*-*-*-*-*-*"
-
footerText
- This is a raw text string in HTML format that will be parsed, formatted, and displayed after the "text" resource.
-
header1Font
- The font to use for level 1 headers (<H1> tag).
- Default: "-adobe-times-bold-r-normal-*-24-*-*-*-*-*-*-*"
-
header2Font
- The font to use for level 2 headers (<H2> tag).
- Default: "-adobe-times-bold-r-normal-*-18-*-*-*-*-*-*-*"
-
header3Font
- The font to use for level 3 headers (<H3> tag).
- Default: "-adobe-times-bold-r-normal-*-17-*-*-*-*-*-*-*"
-
header4Font
- The font to use for level 4 headers (<H4> tag).
- Default: "-adobe-times-bold-r-normal-*-14-*-*-*-*-*-*-*"
-
header5Font
- The font to use for level 5 headers (<H5> tag).
- Default: "-adobe-times-bold-r-normal-*-12-*-*-*-*-*-*-*"
-
header6Font
- The font to use for level 6 headers (<H6> tag).
- Default: "-adobe-times-bold-r-normal-*-10-*-*-*-*-*-*-*"
-
headerText
- This is a raw text string in HTML format that will be parsed, formatted, and displayed before the "text" resource.
-
imageBorders
- Boolean. If true all images (<IMG> tag) will be given borders, if False, only images inside anchors will have borders.
-
isIndex
- Boolean. Set after the "text" is parsed and formatted. It is true if an <INDEX> tag appeared in the text, and false otherwise.
-
italicFont
- The font to use for italic text.
- Default: "-adobe-times-medium-i-normal-*-14-*-*-*-*-*-*-*"
-
listingFont
- The font to use for listings (<LISTING> tag).
- Default: "-adobe-courier-medium-r-normal-*-12-*-*-*-*-*-*-*"
-
marginWidth
- This controls the width of the margin of blank space that appears on the left and right sides of the formatted text.
-
marginHeight
- This controls the height of the margin of blank space that appears on the top and bottom sides of the formatted text.
-
pageHeight
- The maximum page height. Pages longer than this are split into multiple pages. (Valid between 100 and 30000)
-
percentVerticalSpace
- The percentage of one blank line that will be inserted as vertical space around headers and paragraphs, etc. (Default to 90 for 90%)
-
plainFont
- The font to use for plain or preformatted text (<PRE>, <XMP>, <PLAINTEXT> tags).
- Default: "-adobe-courier-medium-r-normal-*-14-*-*-*-*-*-*-*"
-
previouslyVisitedTestFunction
- This resource expects to contain a pointer to a function that returns an int. The function will be passed the Widget and a char * That points to the HREF text for this anchor. The function is expected to return 1 for anchors that have been visited before, and 0 otherwise.
-
resolveImageFunction
- The <IMG> tag has a SRC parameter that is supposed to describe the source of the image to place here. When one of these tags is hit the function at this resource is called with the widget and the SRC string, and the function is expected to return a pointer to an
ImageInfo
structure for this image. Images are by default aligned to the bottom of the current line. <IMG> accepts a ALIGN parameter that can be TOP for top aligned images.
-
text
- This is the raw text string in HTML format that will be parsed, formatted, and displayed.
-
titleText
- After a text string has been parsed and formatted, an XtGetValues() on this resource will return the value of any <TITLE> tag that was in the text. NULL is returned if there was none.
-
visitedAnchorUnderlines
- How many times to underline visited anchor text. (Valid values 0-3)
-
visitedAnchorColor
- Color to use when drawing visited anchor text.
-
foreground
- This resource only exists if MOTIF is not defined at compile time. With Motif, the Manager widget's foreground is used, without it this resource is used.
Return to main
HTML Widget
documentation page.