Forum > LCL
Don't use & as accelerator char in MenuItem
(1/1)
AlexTP:
How to disable & as accelerator char in MenuItem, so & is shown as usual caption char?
Only to double it as &&? Not ok.
For all widgetsets.
wp:
What do you mean with "not ok"? Not acceptable? Not working?
Doubling the "&" in the menuitem caption does show the "&" for me (Win 10)
AlexTP:
I mean- its not nice trick. Better to have option in TMenuItem. But ok, used && now.
wp:
--- Quote from: Alextp on June 12, 2018, 10:16:33 am ---I mean- its not nice trick. Better to have option in TMenuItem. But ok, used && now.
--- End quote ---
It is the Delphi way, and in the end it comes from Windows (DrawText, DT_HIDEPREFIX, https://msdn.microsoft.com/en-us/library/windows/desktop/dd162498(v=vs.85).aspx).
When there were an option in TMenuItem then how would you handle the case of having the underlined accelerator character together with a normal "&" in the same menu item?
Navigation
[0] Message Index