• :tk::unsupported::MacWindowStyle

    From bagnon@miguel@bagnon.com to comp.lang.tcl on Sun Jun 28 18:37:16 2026
    From Newsgroup: comp.lang.tcl

    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
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Harald Oehlmann@wortkarg3@yahoo.com to comp.lang.tcl on Mon Jun 29 09:46:53 2026
    From Newsgroup: comp.lang.tcl

    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 {"::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

    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



    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From bagnon@miguel@bagnon.com to comp.lang.tcl on Mon Jun 29 12:17:41 2026
    From Newsgroup: comp.lang.tcl

    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)

    Trivial for the darkness side, not so for
    "tk::unsupported::MacWindowStyle style", any hints? I do not see this
    covered in TIP 750.

    On 6/29/26 9:46 AM, Harald Oehlmann wrote:
    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




    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From nemethi@csaba.nemethi@t-online.de to comp.lang.tcl on Tue Jun 30 14:50:06 2026
    From Newsgroup: comp.lang.tcl

    This is a multi-part message in MIME format. --------------t0ERSHECKIBRXxFQd80fM65v
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit

    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. 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.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de --------------t0ERSHECKIBRXxFQd80fM65v
    Content-Type: message/rfc822; name="ANNOUNCE: Magicsplat Tcl/Tk for Windows
    9.0.4-2.0.7 and 8.6.18-1.18.0 released.eml"
    Content-Disposition: attachment; filename*0="ANNOUNCE: Magicsplat Tcl/Tk for
    Windows 9.0.4-2.0.7 and 8.6."; filename*1="18-1.18.0 released.eml" Content-Transfer-Encoding: 7bit

    Path: news.tota-refugium.de!!weretis.net!reader5.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
    From: Ashok <apnmbx-public@yahoo.com>
    Newsgroups: comp.lang.tcl
    Subject: ANNOUNCE: Magicsplat Tcl/Tk for Windows 9.0.4-2.0.7 and 8.6.18-1.18.0
    released
    Date: Tue, 30 Jun 2026 13:26:52 +0530
    Organization: A noiseless patient Spider
    Lines: 13
    Message-ID: <111vss4$tt9d$1@dont-email.me>
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit
    Injection-Date: Tue, 30 Jun 2026 07:56:52 +0000 (UTC)
    Injection-Info: dont-email.me;
    logging-data="980269"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vHY1x+/QN5JlCqHCxtw+a"; posting-host="eb297b60f6aa0a12940200c37c754515"
    User-Agent: Mozilla Thunderbird
    Cancel-Lock: sha1:W519pURPLt2OQ8ISCrGLgM3VBE0= sha256:6SFrYA2Gph5RmRM6pOzTD53P4Lcd2w+/O8XMyx09nkA=
    sha1:fsDR53RkUlCmazkYAHmRWPOgc4E= sha256:T9wyMuBNVstB4Aoln5Imla+uzgjt0tu6fhbBq+kitqw=
    sha1:K7s4NUxnzoOEb3+xSA+d218lpSM=
    Content-Language: en-US
    Xref: news.tota-refugium.de comp.lang.tcl:91225


    New Magicsplat Tcl/Tk installers for Windows have been released.

    8.6.18-1.18.0 - updated to Tcl/Tk 8.6.18 with new and updated packages

    9.0.4-2.0.7 - updated to Tcl/Tk 9.0.4 with new and updated packages

    See https://www.magicsplat.com/tcl-installer/index.html for list of
    included packages, updates, download links etc.

    Note that installers are no longer signed (or rather are now
    self signed) as I'm no longer willing to pay the current prices for Authenticode certificates.

    --------------t0ERSHECKIBRXxFQd80fM65v--
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From nemethi@csaba.nemethi@t-online.de to comp.lang.tcl on Tue Jun 30 15:00:40 2026
    From Newsgroup: comp.lang.tcl

    Am 30.06.26 um 14:50 schrieb nemethi:
    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.


    Sorry, I see that my answer has an attachment -- that was not intended.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From bagnon@miguel@bagnon.com to comp.lang.tcl on Thu Jul 2 12:00:25 2026
    From Newsgroup: comp.lang.tcl

    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 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.


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From nemethi@csaba.nemethi@t-online.de to comp.lang.tcl on Thu Jul 2 21:31:26 2026
    From Newsgroup: comp.lang.tcl

    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.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de
    --- Synchronet 3.22a-Linux NewsLink 1.2