summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-08-09 11:43:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-08-09 11:43:38 (GMT)
commitc9903689a8541998d1d026b8036ac72100efc8aa (patch)
tree9f3c46e6de22e92fd291f2db1e57227140f1305f /doc
parent3cd0892a73189207b4fa4221749695dc300577d2 (diff)
parenta4494d160153ddce327914af6062ae19fd562c1c (diff)
downloadtk-c9903689a8541998d1d026b8036ac72100efc8aa.zip
tk-c9903689a8541998d1d026b8036ac72100efc8aa.tar.gz
tk-c9903689a8541998d1d026b8036ac72100efc8aa.tar.bz2
Fix [475692230a]: Wrong advice regarding TK_OPTION_PIXELS
Diffstat (limited to 'doc')
-rw-r--r--doc/SetOptions.310
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/SetOptions.3 b/doc/SetOptions.3
index 41e49e9..2dc9450 100644
--- a/doc/SetOptions.3
+++ b/doc/SetOptions.3
@@ -505,11 +505,13 @@ integer pixel value corresponding to \fB2m\fR. Unfortunately, this loses
the original screen-independent value. Thus for \fBTK_OPTION_PIXELS\fR options
it is better to use the \fIobjOffset\fR field. In this case the original
value of the option is retained in the object and can be returned when
-the option is retrieved. In most cases it is convenient to use the
+the option is retrieved. It might seem convenient to use the
\fIinternalOffset\fR field as well, so that the integer value is
-immediately available for use in the widget code (alternatively,
-\fBTk_GetPixelsFromObj\fR can be used to extract the integer value from
-the object whenever it is needed). Note that the problem of losing
+immediately available for use in the widget code. But if scaling is
+involved, \fIinternalOffset\fR won't change value when the scaling
+changes. Therefore it is better always to use
+\fBTk_GetPixelsFromObj\fR to extract the integer value from
+the object whenever it is needed. Note: the problem of losing
information on retrievals exists only for \fBTK_OPTION_PIXELS\fR options.
.PP
The second reason to use the \fIobjOffset\fR field is in order to