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.
Daniel A. Steffen
TclTkAquaBI
None
Public
| Filename | Description | Download |
|---|---|---|
| MacButtonBug.tcl | program showing bitmask bug | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 214069: MacButtonBug.tcl | 2007-02-01 19:29 | paulbloch |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use