Menu: spacing between text and shortcut

17 views
Skip to first unread message

Michele Alessandrini

unread,
May 8, 2026, 4:35:17 AMMay 8
to fltk.general
Hi, menu items by default have the shortcut indicator too much close (in my opinion) to the text.
See attached image: on the left the larger item at the bottom guarantees a minimum width of the menu, but on the right there's no clear text/shortcut separation, with less readability.
I think it could be good to have a way to define a minimum gap, or set a default one.
Bye and thanks

menu.png

Ian MacArthur

unread,
May 8, 2026, 6:26:02 AMMay 8
to fltk.general
I don't think there's a setting for that at present.

If it is a problem in the short-term, the "easy workaround" is to pad your label entries out with spaces, so that "Undo" becomes "Undo      " and that usually does the trick.
It's hacky, but it works.

Jackk Sonn

unread,
May 8, 2026, 7:14:44 AMMay 8
to fltk.general
Looking into it
Reply all
Reply to author
Forward
0 new messages