racket/collects/drracket/syncheck-drracket-button.rkt
Neil Toronto 4d1cedc913 Removed accidental dependence of images/icons/stickman on racket/gui
Began scribble docs

Added `compiled-bitmap' and `compiled-bitmap-list', which embed bitmaps
computed at expansion time into compiled files (safe 3D values)

Please merge into release
2012-01-12 21:48:41 -07:00

25 lines
735 B
Racket

#lang racket/base
(require racket/class
racket/gui/base
string-constants/string-constant
images/compile-time
(for-syntax racket/base images/icons/tool images/icons/style))
(provide syncheck-drracket-button
syncheck-bitmap
syncheck-small-bitmap
syncheck:button-callback)
(define-local-member-name syncheck:button-callback)
(define syncheck-bitmap
(compiled-bitmap (check-syntax-icon (toolbar-icon-height))))
(define syncheck-small-bitmap
(compiled-bitmap (small-check-syntax-icon (toolbar-icon-height))))
(define syncheck-drracket-button
(list
(string-constant check-syntax)
syncheck-bitmap
(λ (drs-frame) (send drs-frame syncheck:button-callback))))