#lang scheme/gui
(require
framework
)
(provide project-14840-init frame-14850 button-15088)
(define (label-bitmap-proc l)
(let ((label (first l))
(image? (second l))
(file (third l)))
(or (and image?
(or (and file
(let ((bmp
(make-object bitmap%
file)))
(and (send bmp ok?) bmp)))
"<Bad Image>"))
label)))
(define (list->font l)
(with-handlers
((exn:fail?
(λ (e)
(send/apply
the-font-list
find-or-create-font
(cons (first l) (rest (rest l)))))))
(send/apply the-font-list find-or-create-font l)))
(define frame-14850 #f)
(define button-15088 #f)
(define (project-14840-init
#:button-15088-callback
(button-15088-callback
(lambda (button control-event) (void))))
(set! frame-14850
(new
frame%
(parent #f)
(label "Frame")
(width #f)
(height #f)
(x #f)
(y #f)
(style '())
(enabled #t)
(border 0)
(spacing 0)
(alignment (list 'center 'top))
(min-width 70)
(min-height 30)
(stretchable-width #t)
(stretchable-height #t)))
(set! button-15088
(new
button%
(parent frame-14850)
(label
(label-bitmap-proc
(list
"Button"
#t
"../images/hierarchy-delete.png")))
(callback button-15088-callback)
(style '())
(font
(list->font
(list
8
#f
'default
'normal
'normal
#f
'default
#f)))
(enabled #t)
(vert-margin 2)
(horiz-margin 2)
(min-width 0)
(min-height 0)
(stretchable-width #f)
(stretchable-height #f)))
(send frame-14850 show #t))