UseSystemKeyNameText Property
Description
Gets/sets whether system localized shortcut text will be used for shortcuts.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property UseSystemKeyNameText() As Boolean
Remarks
UseSystemKeyNameText is used for localization of shortcut key descriptions. When set to True, the text description that is displayed will be localized.
Setting this to True allows the system to localize shortcuts instead of using the predefined shortcuts table.
Custom text descriptions can be entered for most keys using the SetKeyNameText method. This allows you to localize the text for the shortcuts.
Example
Custom Shortcut Key Descriptions (Visual Basic)
This sample illustrates how to set a custom Shortcut Key description.
' Place these constants in a Module .bas file
Public Const FSHIFT = 4
Public Const FCONTROL = 8
Public Const FALT = 16
Public Const VK_BACK = &H8
Public Const VK_LEFT = &H25
Public Const VK_UP = &H26
Public Const VK_RIGHT = &H27
Public Const VK_DOWN = &H28
Public Const VK_INSERT = &H2D
CommandBars.KeyBindings.Add FCONTROL, VK_HOME, 501
CommandBars.KeyBindings.UseSystemKeyNameText = True
CommandBars.KeyBindings.SetKeyNameText VK_HOME, "Press Home Key"
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.