elmonkfish
05-04-2010, 09:48 AM
How do you underline a letter of a button caption so that it is the shortcut letter for that button?
In other programming languages you would use the ampersand in front of the letter you wanted to be the shortcut letter e.g. I have a button captioned Fred; the shortcut key is r so I would type as the caption F&red; the caption would appear as Fred.
If I type F&red as the caption that is what is displayed as the caption.
I am aware that you can type a letter for the accelerator property of a button which gives the expected behaviour of a shortcut letter, but I also want the visual effect of underlining the shortcut letter.
In other programming languages you would use the ampersand in front of the letter you wanted to be the shortcut letter e.g. I have a button captioned Fred; the shortcut key is r so I would type as the caption F&red; the caption would appear as Fred.
If I type F&red as the caption that is what is displayed as the caption.
I am aware that you can type a letter for the accelerator property of a button which gives the expected behaviour of a shortcut letter, but I also want the visual effect of underlining the shortcut letter.