From: <dan...@ta...> - 2003-05-13 16:19:43
|
Hi! In line 153-158 you have: ------------------------------------------------------ set w(selcolor) [lindex [.testent configure -selectbackground] 3] set entryfont [lindex [.testent configure -font] 3] destroy .testent # the above results in a nearly undistinguishable darker gray for the # selected color (rh8 with tk 8.3.3-74) "#c3c3c3" set w(selcolor) "#b03060" ------------------------------------------------------ I think the problem is the index 3 when setting w(selcolor): ------------------------------------------------------ set w(selcolor) [lindex [.testent configure -selectbackground] 4] set entryfont [lindex [.testent configure -font] 3] destroy .testent ------------------------------------------------------ =2E.. sets the value of "*selectBackground" from your .Xdefaults (or #bfd= fff,=20 a light blue, as default) into w(selcolor). An other solution would be: ------------------------------------------------------ set w(selcolor) [lindex [.testent configure -selectforeground] 4] set entryfont [lindex [.testent configure -font] 3] destroy .testent ------------------------------------------------------ In this case you get the value of "*selectForeground". Better than using = the=20 background color for the foreground of a checkbox. Is there a way to get the value of "*selector" from the .Xdefaults? I thi= nk=20 this would be the "correct" value for this case. Greetings, Daniel --=20 Daniel H=F6pfl targit GmbH R=FCdesheimer Stra=DFe 7 Tel: +49 (89) 517 397 - 0 D-80686 M=FCnchen Fax: +49 (89) 517 397 - 77 http://www.targit.de/ |