[Question]fillOval: ????
Bob Arning
arning at charm.net
Wed Apr 26 15:50:10 UTC 2000
On Wed, 26 Apr 2000 15:51:00 +0200 Karl Ramberg <karl.ramberg at chello.se> wrote:
>Why does not this code work ?
>I ask it to fill a oval on a form.
The #fillOval... is understood by a Canvas, but not by a Form. This is approximately what you want:
[snip]
ff _ currentCursor copy: larger.
ff colors at: 1 put: Color transparent.
ff colors at: 2 put: Color transparent.
"ff fill: (box insetBy: 1 at 1) fillColor: Color transparent."
ff offset: co - (width at width //2).
(FormCanvas on: ff) fillOval: (Rectangle center: ff offset negated extent: 10 at 10)
color: Color blue
borderWidth: 1
borderColor: Color red.
^ ff
[snip]
Cheers,
Bob
More information about the Squeak-dev
mailing list
|