Skip to content

Commit ff580c2

Browse files
committed
fix problem with switchable-button tool tip
Closes PR 12562 Merge to v5.3.4
1 parent b9ff55b commit ff580c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

collects/mrlib/switchable-button.rkt

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@
4444
(send dc set-font font))))
4545

4646
(define/override (on-event evt)
47-
(show #f))
47+
(send (get-top-level-window) show #f))
4848

4949
(inherit stretchable-width stretchable-height
5050
min-width min-height
51-
get-client-size get-dc show)
51+
get-client-size get-dc
52+
get-top-level-window)
5253
(super-new)
5354
(let-values ([(tw th _1 _2) (send (get-dc) get-text-extent label small-control-font)])
5455
(min-width (floor (inexact->exact (+ tw 4))))

0 commit comments

Comments
 (0)