From 2e847608b049b42fd6f4e249d7574b28df863e06 Mon Sep 17 00:00:00 2001 From: fvogel Date: Fri, 14 Jul 2023 19:25:25 +0000 Subject: OBJOFFSET VS. INTERNALOFFSET: Document that Ttk widgets do not support the internalOffset machinery. --- doc/SetOptions.3 | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v0.12