summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-07-14 19:25:25 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-07-14 19:25:25 (GMT)
commit2e847608b049b42fd6f4e249d7574b28df863e06 (patch)
treeeded79b6a66c66a3599dabd76cd59f4d82370697 /doc
parentee2696999f9ff5ba58e62f256684a334feae4feb (diff)
downloadtk-2e847608b049b42fd6f4e249d7574b28df863e06.zip
tk-2e847608b049b42fd6f4e249d7574b28df863e06.tar.gz
tk-2e847608b049b42fd6f4e249d7574b28df863e06.tar.bz2
OBJOFFSET VS. INTERNALOFFSET: Document that Ttk widgets do not support the internalOffset machinery.
Diffstat (limited to 'doc')
-rw-r--r--doc/SetOptions.34
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/SetOptions.3 b/doc/SetOptions.3
index 08d5342..53b289f 100644
--- a/doc/SetOptions.3
+++ b/doc/SetOptions.3
@@ -533,6 +533,10 @@ To implement a new type of option, you can use \fBTK_OPTION_STRING\fR as
the type in the Tk_OptionSpec structure and set the \fIobjOffset\fR field
but not the \fIinternalOffset\fR field. Then, after calling
\fBTk_SetOptions\fR, convert the object to internal form yourself.
+.PP
+Ttk widgets do not support the \fIinternalOffset\fR machinery.
+Option values of Ttk widgets are always stored as (Tcl_Obj *), meaning that
+the \fIobjOffset\fR field must be used.
.SH "CUSTOM OPTION TYPES"
.PP
Applications can extend the built-in configuration types with