Method function IGDIPlus.IGPStringFormat.GetHotkeyPrefix() : TGPHotkeyPrefix

From Mitov Wiki Doc
Revision as of 17:18, 18 October 2012 by David Alm (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Class: IGPStringFormat

Contents

Syntax

Delphi:

function GetHotkeyPrefix() : TGPHotkeyPrefix;

C++ Builder:

TGPHotkeyPrefix __fastcall GetHotkeyPrefix();

Visual C++ (MFC):

GetHotkeyPrefix();

Summary

Returns the type of processing that is performed on a string when a hot key prefix, an ampersand (&), is encountered.

Description

Call this method to get an element of the TGPHotkeyPrefix enumeration that indicates the type of processing that is performed on a string when a hot key prefix, an ampersand (&), is encountered. Remarks Hot keys, also called access keys, are keys that are programmed to provide an end user with keyboard shortcuts to functionality and are activated by pressing the ALT key. The keys are application dependent and are identified by an underscored letter, typically in a menu name or menu item; for example, when you press ALT, the letter F of the File menu is underscored. The F key is a shortcut to display the File menu.


A client programmer designates a hot key in an application by using the hot key prefix, an ampersand (&), in a string that typically is displayed as the name of a menu or an item in a menu and by using the SetHotkeyPrefix method to set the appropriate type of processing. When a character in a string is preceded with an ampersand, the key that corresponds to the character becomes a hot key during the processing that occurs when the string is drawn on the display device. The ampersand is called a hot key prefix because it precedes the character to be activated. If HotkeyPrefixNone is passed to SetHotkeyPrefix, no processing of hot key prefixes occurs.



Note The term hot key is used synonymously here with the term access key. The term hot key may have a different meaning in other Windows APIs.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox