Tk Source Code

View Ticket
Login
Ticket UUID: 826850
Title: Radiobuttons no visible in 8.5a0
Type: Bug Version: obsolete: 8.5a0
Submitter: traum Created on: 2003-10-20 13:20:27
Subsystem: 03. [*button] and [label] Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-05-04 07:36:27
Resolution: Fixed Closed By: hobbs
    Closed on: 2004-05-04 00:36:27
Description:
Testing 8.5a0 under Unix:

The new (nice) Radiobuttons are not visible in all of
our dialogs.

We can't figure out why.

But using the iwidget - Radiobox - Example leads
to the same problem:

!/bin/sh
#
----------------------------------------------------------------------
#  DEMO: radiobox in [incr Widgets]
#
----------------------------------------------------------------------
#\
exec itkwish "$0" ${1+"$@"}
package require Iwidgets 3.0

# itkwish interprets the rest...
#
----------------------------------------------------------------------
iwidgets::radiobox .rb -labeltext "Size:" -labelpos nw
pack .rb -padx 4 -pady 4 -fill both

.rb add small -text "Small"
.rb add med -text "Medium"
.rb add large -text "Large"
.rb add xlarge -text "Biggie"

.rb select med
User Comments: hobbs added on 2004-05-04 07:36:27:
Logged In: YES 
user_id=72656

fixed 2004-05-03 with:

@@ -165,11 +165,16 @@
      */

     if (tkwin == NULL || display == None || d == None ||
bgBorder == NULL
-           || indicatorColor == NULL || selectColor == NULL
-           || disableColor == NULL) {
+           || indicatorColor == NULL) {
        return;
     }

+       if (disableColor == NULL)
+               disableColor = bg_brdr->bgColorPtr;
+
+       if (selectColor == NULL)
+               selectColor = bg_brdr->bgColorPtr;
+
     depth = Tk_Depth(tkwin);

     /*

traum added on 2004-02-27 21:12:50:
Logged In: YES 
user_id=770325

after commenting out 2 lines in itk.tcl it works.

line 126:

itk::usual Radiobutton {
    keep -background -cursor -foreground -font
#    keep -activebackground -activeforeground
-disabledforeground
#    keep -selectcolor
    keep -highlightcolor -highlightthickness
    rename -highlightbackground -background background
Background
}

is this an itk or an tk problem ?

traum added on 2004-02-27 03:15:47:
Logged In: YES 
user_id=770325

more detailed:
the problem only occurs only in some
dialogs (using iwiidgets::radiobox)
the new round buttons on the left are not there
(they are in the windows-version)
this happens after upgrading to 8.5 from 8,4

other radiobuttons appear as wanted but calling
tk_palette gives them the old 8.4 color-scheme