| Deutsch English Français Italiano |
|
<1740755613-2544@newsgrouper.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!newsgrouper.org!.POSTED!not-for-mail From: Martin (m0h) <user2544@newsgrouper.org.invalid> Newsgroups: comp.lang.tcl Subject: Re: Images on disabled buttons look bad References: <1740610164-2544@newsgrouper.org> <vpp37b$30tct$1@dont-email.me> Date: Fri, 28 Feb 2025 15:13:33 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <1740755613-2544@newsgrouper.org> Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user2544 Injection-Date: Fri, 28 Feb 2025 15:13:33 GMT User-Agent: Newsgrouper/0.7.0 Bytes: 1872 Lines: 22 Christian Gollwitzer <auriocus@gmx.de> posted: > Am 26.02.25 um 23:49 schrieb Martin (m0h): > > > > My image looks fine when it is on a normal button. When I change the state of the button to disabled the image is stippled. Is there a way to change this default behaviour? > > This is intended in order to provide visual feedback. If you use a > ttk::button, you can provide your own disabled image instead. Create a > disabled image e.g. grayscale or toned-down version, and then pass a > list to -image. YOu can specify multiple images for different states of > the button, so that should be > "normalimage disabled disabledimage" (untested) > > See: https://www.tcl-lang.org/man/tcl/TkCmd/ttk_widget.htm#M-image > > Christian Hello Christian, Thank you for the answer. I didn't know Ttk had this feature. Maybe I was a little too fixated on the documentation of the non-Ttk button. It is definetly good to know this feature exists, although I will have to see if it is worth the effort to implement this into my application as I rely on Tk buttons currently. Martin (m0h)