Sorry if I missed this topic.
In Tk9.1b0,
#if 0 //#ifdef MAC_OSX_TK
-a-a-a {"::tk::unsupported::MacWindowStyle",
-a-a-a-a-a-a-a-a-a-a-a TkUnsupported1ObjCmd,-a-a-a PASSMAINWINDOW|ISSAFE}, #endif
Is this transient? Why?
Many thanks in advance
Am 28.06.2026 um 18:37 schrieb bagnon:
Sorry if I missed this topic.
In Tk9.1b0,
#if 0 //#ifdef MAC_OSX_TK
-a-a-a-a {"::tk::unsupported::MacWindowStyle",
-a-a-a-a-a-a-a-a-a-a-a-a TkUnsupported1ObjCmd,-a-a-a PASSMAINWINDOW|ISSAFE}, >> #endif
Is this transient? Why?
Many thanks in advance
Miguel,
I was a bit in the process when I did TIP 750 with Marc.
https://core.tcl-lang.org/tips/doc/trunk/tip/750.md
To my knowledge, many MAC unsupported features were removed, as there
are supported normal features.
Take care,
Harald
ok, thanks a lot for the clarification.
Then, tklib needs a bit of a push...
./tablelist/scripts/tablelistUtil.tcl: [catch {tk::unsupported::MacWindowStyle isdark .} result] == 0) ? ./tooltip/tooltip.tcl: ::tk::unsupported::MacWindowStyle style $b help none ./widget/dateentry.tcl:-a-a-a tk::unsupported::MacWindowStyle style $dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle style
$w utility {hud
./tsw/scripts/elements.tcl:-a-a-a [catch {tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tsw/scripts/elements.tcl:-a-a-a [catch {tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./mentry/scripts/mentryThemes.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0)
Am 29.06.26 um 12:17 schrieb bagnon:
ok, thanks a lot for the clarification.
Then, tklib needs a bit of a push...
./tablelist/scripts/tablelistUtil.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tooltip/tooltip.tcl: ::tk::unsupported::MacWindowStyle style $b help
none
./widget/dateentry.tcl:-a-a-a tk::unsupported::MacWindowStyle style
$dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl:-a-a-a [catch {tk::unsupported::MacWindowStyle >> isdark .} result] == 0) ?
./tsw/scripts/elements.tcl:-a-a-a [catch {tk::unsupported::MacWindowStyle >> isdark .} result] == 0) ?
./mentry/scripts/mentryThemes.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0)
If you take a closer look at tablelist, scrollutil, mentry, and tsw, you will see that they are already fully adapted to TIP 750.-a For example,
the above code snippet from tablelistUtil.tcl belongs to the body of a
proc:
proc tablelist::isInDarkMode {} {
-a-a-a return [expr {
-a-a-a-a-a-a-a ([catch {winfo isdark .} result] == 0 ||
-a-a-a-a-a-a-a-a [catch {tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
-a-a-a-a-a-a-a $result : 0}]
}
This procedure checks whether the application is in dark mode, and will
work as expected for all Tk versions, including 9.1b0.
I haven't (yet) examined which changes are necessary for other packages contained in tklib.
Am 29.06.26 um 12:17 schrieb bagnon:
ok, thanks a lot for the clarification.
Then, tklib needs a bit of a push...
./tablelist/scripts/tablelistUtil.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tooltip/tooltip.tcl: ::tk::unsupported::MacWindowStyle style $b help
none
./widget/dateentry.tcl:-a-a-a tk::unsupported::MacWindowStyle style
$dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl:-a-a-a [catch {tk::unsupported::MacWindowStyle >> isdark .} result] == 0) ?
./tsw/scripts/elements.tcl:-a-a-a [catch {tk::unsupported::MacWindowStyle >> isdark .} result] == 0) ?
./mentry/scripts/mentryThemes.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0)
If you take a closer look at tablelist, scrollutil, mentry, and tsw, you will see that they are already fully adapted to TIP 750.-a For example,
the above code snippet from tablelistUtil.tcl belongs to the body of a
proc:
proc tablelist::isInDarkMode {} {
-a-a-a return [expr {
-a-a-a-a-a-a-a ([catch {winfo isdark .} result] == 0 ||
-a-a-a-a-a-a-a-a [catch {tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
-a-a-a-a-a-a-a $result : 0}]
}
This procedure checks whether the application is in dark mode, and will
work as expected for all Tk versions, including 9.1b0.
I haven't (yet) examined which changes are necessary for other packages contained in tklib.
Then maybe only those using ::tk::unsupported::MacWindowStyle style
Thanks a lot!
On 6/30/26 2:50 PM, nemethi wrote:
Am 29.06.26 um 12:17 schrieb bagnon:
ok, thanks a lot for the clarification.
Then, tklib needs a bit of a push...
./tablelist/scripts/tablelistUtil.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tooltip/tooltip.tcl: ::tk::unsupported::MacWindowStyle style $b
help none
./widget/dateentry.tcl:-a-a-a tk::unsupported::MacWindowStyle style
$dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl:-a-a-a [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tsw/scripts/elements.tcl:-a-a-a [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./mentry/scripts/mentryThemes.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0)
If you take a closer look at tablelist, scrollutil, mentry, and tsw,
you will see that they are already fully adapted to TIP 750.-a For
example, the above code snippet from tablelistUtil.tcl belongs to the
body of a proc:
proc tablelist::isInDarkMode {} {
-a-a-a-a return [expr {
-a-a-a-a-a-a-a-a ([catch {winfo isdark .} result] == 0 ||
-a-a-a-a-a-a-a-a-a [catch {tk::unsupported::MacWindowStyle isdark .} result] ==
0) ?
-a-a-a-a-a-a-a-a $result : 0}]
}
This procedure checks whether the application is in dark mode, and
will work as expected for all Tk versions, including 9.1b0.
I haven't (yet) examined which changes are necessary for other
packages contained in tklib.
Am 02.07.26 um 12:00 schrieb bagnon:
Then maybe only those using ::tk::unsupported::MacWindowStyle style
Thanks a lot!
On 6/30/26 2:50 PM, nemethi wrote:
Am 29.06.26 um 12:17 schrieb bagnon:
ok, thanks a lot for the clarification.
Then, tklib needs a bit of a push...
./tablelist/scripts/tablelistUtil.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tooltip/tooltip.tcl: ::tk::unsupported::MacWindowStyle style $b
help none
./widget/dateentry.tcl:-a-a-a tk::unsupported::MacWindowStyle style
$dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl:-a-a-a [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tsw/scripts/elements.tcl:-a-a-a [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./mentry/scripts/mentryThemes.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0)
If you take a closer look at tablelist, scrollutil, mentry, and tsw,
you will see that they are already fully adapted to TIP 750.-a For
example, the above code snippet from tablelistUtil.tcl belongs to the
body of a proc:
proc tablelist::isInDarkMode {} {
-a-a-a-a return [expr {
-a-a-a-a-a-a-a-a ([catch {winfo isdark .} result] == 0 ||
-a-a-a-a-a-a-a-a-a [catch {tk::unsupported::MacWindowStyle isdark .} result]
== 0) ?
-a-a-a-a-a-a-a-a $result : 0}]
}
This procedure checks whether the application is in dark mode, and
will work as expected for all Tk versions, including 9.1b0.
I haven't (yet) examined which changes are necessary for other
packages contained in tklib.
The tklib modules notifywindow and tooltip are now adapted to TIP 750, too.
Thanks a lot!
On 7/2/26 9:31 PM, nemethi wrote:
Am 02.07.26 um 12:00 schrieb bagnon:
Then maybe only those using ::tk::unsupported::MacWindowStyle style
Thanks a lot!
On 6/30/26 2:50 PM, nemethi wrote:
Am 29.06.26 um 12:17 schrieb bagnon:
ok, thanks a lot for the clarification.
Then, tklib needs a bit of a push...
./tablelist/scripts/tablelistUtil.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tooltip/tooltip.tcl: ::tk::unsupported::MacWindowStyle style $b
help none
./widget/dateentry.tcl:-a-a-a tk::unsupported::MacWindowStyle style >>>>> $dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl:-a-a-a [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tsw/scripts/elements.tcl:-a-a-a [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./mentry/scripts/mentryThemes.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0)
If you take a closer look at tablelist, scrollutil, mentry, and tsw,
you will see that they are already fully adapted to TIP 750.-a For
example, the above code snippet from tablelistUtil.tcl belongs to
the body of a proc:
proc tablelist::isInDarkMode {} {
-a-a-a-a return [expr {
-a-a-a-a-a-a-a-a ([catch {winfo isdark .} result] == 0 ||
-a-a-a-a-a-a-a-a-a [catch {tk::unsupported::MacWindowStyle isdark .} result]
== 0) ?
-a-a-a-a-a-a-a-a $result : 0}]
}
This procedure checks whether the application is in dark mode, and
will work as expected for all Tk versions, including 9.1b0.
I haven't (yet) examined which changes are necessary for other
packages contained in tklib.
The tklib modules notifywindow and tooltip are now adapted to TIP 750,
too.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 54:07:16 |
| Calls: | 1,101 |
| Calls today: | 1 |
| Files: | 1,339 |
| Messages: | 276,310 |