Op 12-4-2012 14:00, Stephen Bloch schreef:
On Apr 11, 2012, at 12:03 PM, Roelof Wobben wrote:
I changed the contract to Editor -> Number.
When I change the make-editor function the value changed.
So I think the check-expect is wrong but I have no clue how to change it.
No, the check-expect is fine; the definition is wrong. As I recall (I don't
have it in front of me), it doesn't actually use its parameter.
The function is this :
(define (width editor)
(image-width (text (editor-pre verwerker) 11 "black")))
As I understand your remark it doesn't use editor. So I have to rewrite
it so it uses the parameter editor-pre verwerker ??
Roelof
I find the way with overlay and beside more the hard way.
Why do you need "overlay"? I would think you could do this just with "beside"
(unless you wanted to fine-tune the formatting).
Only beside. But how can I then take care that the text are displayed
into the empty-scene. I think you need overlay or something for that.
Stephen Bloch
sbl...@adelphi.edu
____________________
Racket Users list:
http://lists.racket-lang.org/users