drs bug and test-suite fixes

svn: r9709

original commit: 860c41d7492a33880f9c18839c21a601d675e5b8
This commit is contained in:
Matthew Flatt 2008-05-06 23:27:23 +00:00
parent eda8fa501a
commit 5462d5a219
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#lang scribble/doc
@(require "common.ss"
(for-label mrlib/name-message))
(for-label mrlib/switchable-button))
@title{Switchable Button}
@ -30,5 +30,10 @@ If it is not supplied, both modes show the same bitmap.
@defmethod[(set-label-visible [visible? boolean?]) void?]{
Sets the visibility of the string part of the label.
}
@defmethod[(command) void?]{
Calls the button's callback function.}
}

View File

@ -96,6 +96,10 @@
(refresh)]
[(send evt moving?)
(update-in evt)]))
(define/public (command)
(callback this)
(void))
(define float-window #f)
(inherit get-width get-height)
@ -234,7 +238,7 @@
(min-width (+ w w-circle-space margin margin))
(min-height (+ h h-circle-space margin margin))))
(super-new [style '(transparent)])
(super-new [style '(transparent no-focus)])
(send (get-dc) set-smoothing 'aligned)
(inherit stretchable-width stretchable-height)