image
imageName
[option
value
...]The compound image type allows a single image to be composed of multiple lines, each of which contains one or more text items, bitmaps, or other images. Available options are as follows:
color
Background color for the image and for bitmap items in the image.
amount
Width of 3D border drawn around the image.
font
Default font for text items in the image.
color
Foreground color for the bitmap and text items in the image.
amount
Extra space to request for padding on the left and right side of the image.
amount
Extra space to request for padding on the top and bottom side of the image.
relief
3D effect for the border around the image.
boolean
Whether the background and 3D border should be
drawn or the image should have a transparent background.
The default is false
.
pathName
Window in which the compound image is to be drawn. When the window is destroyed, the image is also destroyed. This option must be specified when a compound image is created and cannot be changed.
When a compound image is created, a Tcl command with the same name as the image is created. This command supports the following operations:
imageName
add
line [-anchor
anchorPos
] [-padx
amount]Create a new line for items at the bottom of the
image. If anchorPos
is
specified, it specifies how the line should be aligned
horizontally. If amount
is
specified, it specifies the amount of padding to add to
the left and right of the line in the image.
imageName
add
itemType
[option
value
...]Add a new item of the specified type to the end of
the last line of the compound image.
ItemType
may be
bitmap
, image
,
space
, or text
.
All item types support the following options:
anchorPos
How the item should be aligned on its line along the vertical axis.
amount
Amount of padding to add to the left and right side of the item.
amount
Amount of padding to add to the top and bottom side of the item.
Bitmap items support the following options:
color
Background color for the bitmap.
bitmap
Bitmap to add to the compound image.
color
Foreground color for the bitmap.
Image items support the following option:
imageName
Name of an image to add to the compound image.
Space items reserve empty space in the image. Space items support the following options:
amount
Height of space to add to the compound image.
amount
Width of space to add to the compound image.
Text items support the following options:
color
Background color for the text.
font
Font to be used for the text.
color
Foreground color for the text.
justify
How to justify multiple lines of text.
Justify
may be
left
, right
, or
center
.
string
Text string to be added to the compound image.
integer
Integer index of a character in the text that should be underlined.
chars
Maximum line length in characters. If
chars
is less than or equal
to 0, no wrapping is done.
imageName
cget
option
Return the current value of the configuration option
Option
for the compound
image.
imageName
configure
[Option
[value
[option
value
...]Query or modify the configuration options of the compound image in the same manner as the standard widget configure method.