Menu hot keys are not underlined at runtime

Abstract: Menu hot keys are not underlined at runtime

Menu hot keys are not underlined at runtime

  • Product Name:��C++Builder�
  • Product Version:��All
  • Product Component:��VCL�
  • Platform/OS Version:� All

    Description:

    In my C++Builder�application, menu hot keys are underlined at designtime but not runtime (i.e., a "&New" menu item where "N" is the hot key and "New" is the designtime appearance but "New" is the runtime appearance).� How can I make my hot keys underlined at runtime as well?

    Answer/Solution:

    This is controlled by a system setting.� By default, menu hot keys are only underlined when the menu is opened using the Alt key.� The underlines do not appear when the menu is opened using a mouse click.

    To change this default behavior under Windows 2000, do the following:

    ���� (1) Go to Control Panel and open Display.

    ���� (2)�Go to the Effects tab.

    ���� (3) Uncheck the "Hide keyboard navigation indicators until I use the Alt key" option and hit OK.

    To change this default behavior under Windows XP, do the following:

    ���� (1) Go to Control Panel and open Display.

    ���� (2) Go to the Appearance tab.

    ���� (3) Click the Effects... button.

    ���� (4) Uncheck the�"Hide underlined letters for keyboard navigation until I press the Alt key" option�and hit OK.

    After making the prescribed change, hot keys will always be underlined regardless of how the menu is opened.

    Author: Yu-Chen Hsueh