Tk Source Code

View Ticket
Login
Ticket UUID: 1083838
Title: Selectcolor is on when checkbutton and radiobutton are off
Type: Bug Version: obsolete: 8.5a3
Submitter: mcclamrock Created on: 2004-12-12 12:51:04
Subsystem: 02. Appearance Assigned To: fvogel
Priority: 6 Severity: Minor
Status: Closed Last Modified: 2018-02-18 21:50:49
Resolution: Fixed Closed By: fvogel
    Closed on: 2018-02-18 21:50:49
Description:
I'm using Tk 8.5.0.0 beta 3 in ActiveTcl on Linux (Mandrake 
10.0), and I find that the -selectcolor option remains "on" even 
when a checkbutton or radiobutton is "off." When the -foreground 
and -selectcolor are both fairly dark colors, the little check or dot 
in the indicator is hard to see. I can fix this by setting 
-selectcolor to a light color when -foreground is dark, or vice 
versa, but this isn't how it's supposed to work according to the 
Tk 8.5 documentation. Of course, maybe only the 
*documentation* needs to be changed, to say that "selectcolor" 
now means the background color of the indicator, which displays 
a check in the foreground color when the checkbutton is on?
User Comments: fvogel added on 2018-02-18 21:50:49:

The fix [1f456fcb] that came in for this ticket took care of the checkbutton only, but forgot the radiobutton. Radiobutton was dealt with in [2321708fff].


hobbs added on 2005-12-01 10:53:34:
Logged In: YES 
user_id=72656

Fixed in 8.5a4 in docs.

hobbs added on 2004-12-14 05:52:21:
Logged In: YES 
user_id=72656

I got the following info from Brian Griffin:

Yes, the documentation needs to change.  The check or dot
mark is drawn in the foreground color and the -selectcolor
is the background around the indicator.