summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-09-04 14:05:48 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-09-04 14:05:48 (GMT)
commit1d636d50772a287e852254d23d881c6af3c7a232 (patch)
tree4ca68bd1862c419f6807655daa3b25975b358513 /doc
parentfbf413734dbe432b51ed64db51a13b596e7b5b09 (diff)
parentf4cee171a5dd4e70a3ba89c257be0f39c622a001 (diff)
downloadtk-1d636d50772a287e852254d23d881c6af3c7a232.zip
tk-1d636d50772a287e852254d23d881c6af3c7a232.tar.gz
tk-1d636d50772a287e852254d23d881c6af3c7a232.tar.bz2
Fix [bc602049ab]: Treeview with custom background expands when switching themes. Thanks to Peter Spjuth. And fix conflicts.
Diffstat (limited to 'doc')
-rw-r--r--doc/ttk_image.n5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/ttk_image.n b/doc/ttk_image.n
index bc1dd3f..34dbabb 100644
--- a/doc/ttk_image.n
+++ b/doc/ttk_image.n
@@ -79,13 +79,16 @@ The \fB\-border\fR divides the image into 9 regions:
four fixed corners, top and left edges (which may be tiled horizontally),
left and right edges (which may be tiled vertically),
and the central area (which may be tiled in both directions).
+.PP
+An image element that is not meant to claim any space (for example when used
+as a background image) should use \fB\-width 0\fR and \fB\-height 0\fR.
.SH "EXAMPLE"
.PP
.CS
set img1 [image create photo \-file button.png]
set img2 [image create photo \-file button-pressed.png]
set img3 [image create photo \-file button-active.png]
-style element create Button.button image \e
+ttk::style element create Button.button image \e
[list $img1 pressed $img2 active $img3] \e
\-border {2 4} \-sticky we
.CE