Donate Share

Tcl/Tk Aqua Batteries-Included

Tracker: Bugs

5 Tcl/Tk bug when using xbm images and masks icons on buttons. - ID: 1650100
Last Update: Attachment added ( paulbloch )

Also filed with Apple Bug Reporter as Problem ID: 4967470.

Steps to Reproduce:
Run the attached program with the command:
/usr/bin/wish8.4 MacButtonBug.tcl

Expected Results:
You should see a button with the icon of a fountain pen nib.

Actual Results:
Mac OS X Tcl/Tk Aqua shows a white button with no icon.

Regression:
If you change the line -background white to -background "", it displays the
pen icon. That change causes it to ignore the -maskdata and create a mask
on the fly. Or just remove the -maskdata command all together. It doesn't
matter if the xbm in in a file or as immediate data. It appears the bug
might be in the way it applies a bitmap mask.

Notes:
I have attached Tcl/Tk source code that should display a button with a pen
icon. This short program runs fine on wish8.4 on Solaris and windows. I
even runs fine in Mac OS X, IF you use wish8.4-X11 (which uses the X11
version of tk. On Mac OS X using /usr/bin/wish8.4 or wish 8.5, the button
shows as white with no icon.


paul bloch ( paulbloch ) - 2007-02-01 19:29

5

Open

None

Daniel A. Steffen

TclTkAquaBI

None

Public


Comments

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
MacButtonBug.tcl program showing bitmask bug Download

Change ( 1 )

Field Old Value Date By
File Added 214069: MacButtonBug.tcl 2007-02-01 19:29 paulbloch