
1. Lots of #lang-ization, other racketizations, code improvements, etc. 2. Some files that were not working now do. 3. "collects/tests/aligned-pasteboard" had some files that were near duplicates of "collects/mrlib/private/aligned-pasteboard/tests". I've removed the former since in a few places it looked like an older version (eg, there were bogus references to a non-existent "utils.rkt"). The former has more files that are in runnable condition now. 4. There are plenty of tests that look like they're failing, but it wasn't shown since they just return #f, and when they were running with a "-f" these results weren't displayed. 5. I have no idea about the code, this is all just reshuffling and minor editing.
21 lines
705 B
Racket
21 lines
705 B
Racket
#lang racket/gui
|
|
|
|
(require "../aligned-pasteboard.rkt" "../aligned-editor-container.rkt"
|
|
"../stretchable-editor-snip.rkt" "../snip-lib.rkt")
|
|
|
|
(define f (new frame% [label ""] [width 500] [height 500]))
|
|
(define e (new vertical-pasteboard%))
|
|
(define c (new aligned-editor-canvas% [parent f] [editor e]))
|
|
|
|
(define pb (new vertical-pasteboard%))
|
|
(define aes (new aligned-editor-snip%
|
|
[editor pb] [stretchable-width #f] [stretchable-height #f]))
|
|
(define t2 (new text%))
|
|
(define ses (new stretchable-editor-snip%
|
|
[editor t2] [min-width 100]
|
|
[stretchable-width #t] [stretchable-height #f]))
|
|
(send e insert aes)
|
|
(send pb insert ses)
|
|
|
|
(send f show #t)
|