fix swiatchble-button to lose its hilite state when its hidden

svn: r13764
This commit is contained in:
Matthew Flatt 2009-02-21 13:30:01 +00:00
parent f79d87bea5
commit 5c7b122118

View File

@ -76,8 +76,16 @@
(define/override (enable e?)
(unless (equal? disabled? (not e?))
(set! disabled? (not e?))
(set! down? #f)
(set! in? #f)
(refresh)))
(define/override (is-enabled?) (not disabled?))
(define/override (on-superwindow-show show?)
(unless show?
(set! in? #f)
(set! down? #f))
(super on-superwindow-show show?))
(define/override (on-event evt)
(cond