I think there is a little bug in the drawing of buttons using GF/St. This can be verified by the forward/back buttons in the Calendar Example.
The buttons get drawn with a black background instead of the current button background.
I believe that using "RGBColor white" in the method GFButtonGO->fromGO: should be changed to "CgRGBColor white". So, the method should be:
- Code: Select all
fromGO: go
"Answer a new instance of the receiver"
| button bitmap mask |
button := self new.
bitmap := GFOpaqueBitmap screenExtent: go displayBox extent.
mask := GFPixmap screenExtent: go displayBox extent.
mask pen fill: mask boundingBox color: CgRGBColor white.
go displayWith: bitmap pen at: 0@0.
go displayShapeWith: mask pen at: 0@0.
bitmap setMask: mask.
button origin: go displayBox origin copy image: bitmap.
^button
--Thomas