Delphi coding hints and tips.

'&' underscores disappearing from menus !

Have you ever notice how the '&' you place in you TMenuItem.Caption or TAction.Caption for Alt hot key's never seem to show the underscore under next letter when you run your application ?

For Win2k in the Control Panel > Display > Effects tab there is a property "Hide keyboard navigation indicators until I use the Alt Key".

If this is checked then all '&' underscores will be hidden until you press the Alt key. Once you press the Alt key in your running Delphi application you show see all your well crafted '&' underscores appear back in the menus.

Or your could uncheck the "Hide keyboard navigation indicators until I use the Alt Key" display effect so for all applications the Alt hot keys are underscored on menus.