Sujet : Re: Images on disabled buttons look bad
De : auriocus (at) *nospam* gmx.de (Christian Gollwitzer)
Groupes : comp.lang.tclDate : 27. Feb 2025, 08:11:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vpp37b$30tct$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
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-imageChristian