Skip to content
Discussion options

You must be logged in to vote

Hi Steve,

You're right that this wasn't supported — & was only ever handled in menu items, never in buttons, so &Scan was painted literally. Good catch, and thanks for the clear report.

I've just implemented it on the develop branch. Buttons, checkboxes and radio buttons now support the same & convention you're used to from Lazarus:

btnScan.Text := '&Scan';        { S is underlined, Alt+S fires the button }
chkVerbose.Text := '&Verbose';  { Alt+V toggles it }

Use && when you want a literal ampersand in the text — 'Black && &White' paints "Black & White" with the W underlined.

A few implementation notes that may matter to you:

  • Alt has to be the only modifier held. Ctrl+Alt+S and Shift+Alt…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@graemeg
Comment options

@sfein1000
Comment options

Answer selected by graemeg
Comment options

You must be logged in to vote
1 reply
@sfein1000
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants