#1535 Multi-Line buttons under Mac OSX

Al Larson

Multiple line buttons fail on my MacOSX port. The
buttons appear to get larger to accomadate the extra
lines, but only the first line text will appear.

The documentation for the button command doesn't
suggest any restrictions that I can find.

pack [button .a -text "Two\nLines"]

Creates a larger than normal button, but only the
word "Two" appears (centered).


  • Jeffrey Hobbs

    Jeffrey Hobbs - 2003-08-04
    • assigned_to: hobbs --> das
  • Jim Ingham

    Jim Ingham - 2003-08-04

    Logged In: YES

    Multi-line buttons don't currently work on Mac OS X. The Aqua
    toolkit doesn't support them. Mocking up the correct button look
    is not at all easy (especially for the throbbing default button), and
    drawing an empty button then writing the text on top of it (which
    is what was done on Classic MacOS) looked awful.

    About the only option is to fall back on the X11 button look if there
    is multi-line text. Or wait and see if the Aqua Toolkit ever
    supports this. I doubt it will, though... Putting enough text in a
    button to warrant a return is not generally considered a good UI...

    I will remember to update the button.n man page, however.

  • Kevin Walzer

    Kevin Walzer - 2011-01-17
    • status: open --> closed-out-of-date

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks