Sorry if I missed this topic.
In Tk9.1b0,
#if 0 //#ifdef MAC_OSX_TK
{"::tk::unsupported::MacWindowStyle",
TkUnsupported1ObjCmd, 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
{"::tk::unsupported::MacWindowStyle",
TkUnsupported1ObjCmd, 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: tk::unsupported::MacWindowStyle style $dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle style
$w utility {hud
./tsw/scripts/elements.tcl: [catch {tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tsw/scripts/elements.tcl: [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: tk::unsupported::MacWindowStyle style
$dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl: [catch {tk::unsupported::MacWindowStyle >> isdark .} result] == 0) ?
./tsw/scripts/elements.tcl: [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. For example,
the above code snippet from tablelistUtil.tcl belongs to the body of a
proc:
proc tablelist::isInDarkMode {} {
return [expr {
([catch {winfo isdark .} result] == 0 ||
[catch {tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
$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: tk::unsupported::MacWindowStyle style
$dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl: [catch {tk::unsupported::MacWindowStyle >> isdark .} result] == 0) ?
./tsw/scripts/elements.tcl: [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. For example,
the above code snippet from tablelistUtil.tcl belongs to the body of a
proc:
proc tablelist::isInDarkMode {} {
return [expr {
([catch {winfo isdark .} result] == 0 ||
[catch {tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
$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: tk::unsupported::MacWindowStyle style
$dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tsw/scripts/elements.tcl: [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. For
example, the above code snippet from tablelistUtil.tcl belongs to the
body of a proc:
proc tablelist::isInDarkMode {} {
return [expr {
([catch {winfo isdark .} result] == 0 ||
[catch {tk::unsupported::MacWindowStyle isdark .} result] ==
0) ?
$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: tk::unsupported::MacWindowStyle style
$dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tsw/scripts/elements.tcl: [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. For
example, the above code snippet from tablelistUtil.tcl belongs to the
body of a proc:
proc tablelist::isInDarkMode {} {
return [expr {
([catch {winfo isdark .} result] == 0 ||
[catch {tk::unsupported::MacWindowStyle isdark .} result]
== 0) ?
$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: tk::unsupported::MacWindowStyle style >>>>> $dropbox \
./notifywindow/notifywindow.tcl: ::tk::unsupported::MacWindowStyle
style $w utility {hud
./tsw/scripts/elements.tcl: [catch
{tk::unsupported::MacWindowStyle isdark .} result] == 0) ?
./tsw/scripts/elements.tcl: [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. For
example, the above code snippet from tablelistUtil.tcl belongs to
the body of a proc:
proc tablelist::isInDarkMode {} {
return [expr {
([catch {winfo isdark .} result] == 0 ||
[catch {tk::unsupported::MacWindowStyle isdark .} result]
== 0) ?
$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: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,126 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 49:09:00 |
| Calls: | 14,414 |
| Calls today: | 2 |
| Files: | 186,400 |
| D/L today: |
10,326 files (2,795M bytes) |
| Messages: | 2,548,842 |
| Posted today: | 1 |