gui/collects/mrlib/private/aligned-pasteboard/aligned-pasteboard.ss
Mike MacHenry a66b3b7a2a fixed run-after-edit-sequence bug
original commit: 3af183ec8ece7b3c8f9d0207a7db810a2bf60d36
2002-12-06 23:38:52 +00:00

30 lines
801 B
Scheme

(module aligned-pasteboard mzscheme
(require
(lib "mred.ss" "mred")
(lib "framework.ss" "framework")
(lib "click-forwarding-editor.ss" "mrlib")
"geometry-managed-pasteboard.ss"
"event-handling-pasteboard.ss"
"locked-pasteboard.ss")
(provide
vertical-pasteboard%
horizontal-pasteboard%)
;; contruct the basic mixin that both pasteboards will be created from
(define (make-aligned-pasteboard type)
(editor:basic-mixin
(click-forwarding-editor-mixin
(locked-pasteboard-mixin
(event-handling-pasteboard-mixin
(geometry-managed-pasteboard-mixin
pasteboard% type))))))
(define vertical-pasteboard%
(make-aligned-pasteboard 'vertical))
(define horizontal-pasteboard%
(make-aligned-pasteboard 'horizontal))
)