original commit: 9cf4ab5a9f724133a5283203ff9fe3f5ef16f56b
This commit is contained in:
Matthew Flatt 1998-09-12 18:38:06 +00:00
parent 3f8df35af8
commit d2f2856dc3
3 changed files with 27 additions and 5 deletions

View File

@ -108,3 +108,14 @@ file.
The "icons" and "stipple" boxes just enable those parts of the
drawing. PostScript drawing of icons and stipples can be slow.
----------
Finally, print these instructions by hitting the "Print" button at the
top of the window. The following lines are for the printing test; they
should wrap aroundneatly on the printed page. (Don't add any
newlines.) Check to make sure no lines are skipped or duplicated across
page breaks. Try different page orientations.
0 1 2 3 4 5 6 7 8 9 X O T T F
012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

View File

@ -11,6 +11,18 @@
(define (get-icon)
(make-object icon% (sys-path "mred.xbm") 'xbm))
(define (show-instructions file)
(letrec ([f (make-object frame% file #f 400 400)]
[print (make-object button% "Print" f
(lambda (b ev)
(send e print)))]
[c (make-object editor-canvas% f)]
[e (make-object text%)])
(send e load-file file)
(send e lock #t)
(send c set-editor e)
(send f show #t)))
(let* ([f (make-object frame% "Graphics Test" #f 300 450)]
[vp (make-object vertical-panel% f)]
[hp0 (make-object horizontal-panel% vp)]
@ -32,7 +44,7 @@
(send hp stretchable-height #f)
(make-object button% "What Should I See?" hp0
(lambda (b e)
(send (send (edit-file (local-path "draw-info.txt")) get-edit) lock #t)))
(show-instructions (local-path "draw-info.txt"))))
(let ([canvas
(make-object
(class canvas% args

View File

@ -1408,8 +1408,8 @@
(lambda ()
(send child set-size
(max 0 (+ x xm)) (max 0 (+ y ym))
(max minw (- w (* 2 xm)))
(max minh (- h (* 2 ym)))))
(- (max minw w) (* 2 xm))
(- (max minh h) (* 2 ym))))
(lambda () (set! ignore-redraw-request? #f)))
(send child on-container-resize))))
childs
@ -1858,8 +1858,7 @@
(define (check-container-parent who p)
(unless (is-a? p internal-container<%>)
(raise-type-error (string->symbol (constructor-name who))
"built-in container<%> object" p)))
(raise-type-error (constructor-name who) "built-in container<%> object" p)))
(define (check-top-level-parent/false who p)
(unless (or (not p) (is-a? p frame%) (is-a? p dialog%))