@@ -17,7 +17,7 @@ Whenever a button is clicked by the user, the button's callback
1717 [parent (or/c (is-a?/c frame%) (is-a?/c dialog%)
1818 (is-a?/c panel%) (is-a?/c pane%))]
1919 [callback ((is-a?/c button%) (is-a?/c control-event%) . -> . any ) (lambda (b e) (void))]
20- [style (listof (or/c 'border 'deleted )) null]
20+ [style (listof (or/c 'border 'multi-line ' deleted )) null]
2121 [font (is-a?/c font%) normal-control-font]
2222 [enabled any/c #t ]
2323 [vert-margin spacing-integer? 2 ]
@@ -59,9 +59,17 @@ The @racket[callback] procedure is called (with the event type
5959If @racket[style] includes @racket['border ], the button is drawn with
6060a special border that indicates to the user that it is the default
6161action button (see @method[top-level-window<%>
62- on-traverse-char]). @DeletedStyleNote[@racket[style] @racket[parent]]{button}
62+ on-traverse-char]). If @racket[style] includes @racket['multi-line ],
63+ the button is drawn in a way that can stretch vertically and accommodate
64+ multiple lines in a text label; currently, this style makes a difference only
65+ on Mac OS, and it is selected automatically when @racket[label] is a string
66+ that contains @racket[#\newline ] or @racket[#\return ].
67+ @DeletedStyleNote[@racket[style] @racket[parent]]{button}
6368
64- @FontKWs[@racket[font]] @WindowKWs[@racket[enabled]] @SubareaKWs[] @AreaKWs[]}
69+ @FontKWs[@racket[font]] @WindowKWs[@racket[enabled]] @SubareaKWs[] @AreaKWs[]
70+
71+ @history[#:changed "1.47 " @elem{Added the @racket['multi-line ] style, and made it
72+ selected when @racket[label] contains @racket[#\return ].}]}
6573
6674
6775@defmethod[#:mode override
0 commit comments