Configuring TMainMenu Alt shortcuts lazarus / 10-Designer ---------------------------------------------------------------------- cybersmyth · 2011-04-11 20:33 How do you configure TMainMenu Alt shortcuts? So that when the user presses the Alt key, it will highlight the menu buttons and underline the key required to activate it? I have the default menu now and when you press Alt, it activates it, but I can't figure out how to underline a letter and bind it to a key. I did see you can set a keyboard shortcut, but it doesn't work right. When I use Alt+S for Save on the menu, pressing Alt-S, shows the dialog twice and does not underline the S on the menu. ---------------------------------------------------------------------- Blaazen · 2011-04-11 20:57 Use ampersand ( & ). It works for acceleration keys for buttons, menu, checkboxes etc. Button1.Caption:='&OK';  //will underline O and Alt+O will press the button ---------------------------------------------------------------------- cybersmyth · 2011-04-12 02:04 That got it! Awesome. Thanks! ---------------------------------------------------------------------- typo · 2011-04-12 02:26 Quoteand Alt+O will press the button Yes, but simple O too. ---------------------------------------------------------------------- cybersmyth · 2011-04-12 10:53 Using the ampersand on the main menu caption requires you to press the Alt key. At least for me.