Version v1.1.14.03
With the Gui,Add,Button statement, an ampersand in front of a character in the button name is supposed to show an underline, indicating that Alt-TheUnderlinedCharacter will invoke the button (same as the button being clicked). However, the underline does not appear (although Alt-ThatCharacter does work). For example, this code will NOT show "F" underlined in the first button or "S" underlined in the second button (but Alt-F and Alt-S work):
Code: Select all
Gui,Add,Button,Default,&First
Gui,Add,Button,,&Second
Gui,Show,,ampersand underlining bug
Return
ButtonFirst:
MsgBox,4096,debug,first clicked
ExitApp
ButtonSecond:
MsgBox,4096,debug,second clicked
ExitApp
GuiClose:
GuiEscape:
ExitApp
Send {Alt}
...placed right after the Gui,Show statement in the code above will cause the underlines on "F" and "S" to appear. Regards, Joe