You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e5ad8f9
Browse filesBrowse the repository at this point in the historyBrowse files
###### [Editing in an Accelerator Table](editing-in-an-accelerator-table.md)
62
-
###### [Finding an Entry in an Accelerator Table](finding-an-entry-in-an-accelerator-table.md)
63
-
###### [Adding an Entry to an Accelerator Table](adding-an-entry-to-an-accelerator-table.md)
64
-
###### [Deleting an Entry From an Accelerator Table](deleting-an-entry-from-an-accelerator-table.md)
65
-
###### [Moving or Copying an Accelerator Table Entry to Another Resource Script File](moving-or-copying-an-accelerator-table-entry-to-another-resource-script-file.md)
66
-
###### [Changing the Properties of Multiple Accelerator Keys](changing-the-properties-of-multiple-accelerator-keys.md)
@@ -11,19 +11,89 @@ In a C++ project, you can edit an accelerator table directly with in-place editi
11
11
12
12
The procedures below refer to the use of standard property pages, however, both in-place editing and the property page method have the same result. Changes made using property pages or using in-place editing are immediately reflected in the accelerator table.
13
13
14
-
-[Editing an accelerator table](../windows/editing-in-an-accelerator-table.md)
14
+
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
15
15
16
-
-[Finding an entry in an accelerator table](../windows/finding-an-entry-in-an-accelerator-table.md)
16
+
> [!NOTE]
17
+
> If your project doesn't already contain an .rc file, please see [Creating a New Resource Script File](../windows/how-to-create-a-resource-script-file.md).
17
18
18
-
-[Adding an entry to an accelerator table](../windows/adding-an-entry-to-an-accelerator-table.md)
19
+
## To edit in an accelerator table
19
20
20
-
-[Deleting an entry from an accelerator table](../windows/deleting-an-entry-from-an-accelerator-table.md)
21
+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
21
22
22
-
-[Moving or copying an accelerator table entry](../windows/moving-or-copying-an-accelerator-table-entry-to-another-resource-script-file.md)
23
+
1. Select an entry in the table and select to activate in-place editing.
23
24
24
-
-[Changing the properties of multiple accelerator keys](../windows/changing-the-properties-of-multiple-accelerator-keys.md)
25
+
1. Select from the drop-down combo box or type in place to make changes.
25
26
26
-
For information on adding resources to managed projects, please see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
27
+
- For [ID](id-property.md), select from the list or type to edit.
28
+
29
+
- For [Modifier](../windows/accelerator-modifier-property.md), select from the list.
30
+
31
+
- For [Key](../windows/accelerator-key-property.md), select from the list or type to edit.
32
+
33
+
- For [Type](../windows/accelerator-type-property.md), select **ASCII** or **VIRTKEY** from the list.
34
+
35
+
## To find an entry in an open accelerator table
36
+
37
+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
38
+
39
+
1. Select a column head to sort the contents of the column alphabetically. For example, select **ID** to display all the IDs in your accelerator table alphabetically.
40
+
41
+
You can then scan the list and find the entry.
42
+
43
+
## To add an entry to an accelerator table
44
+
45
+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
46
+
47
+
1. Right-click within the accelerator table and choose **New Accelerator** from the shortcut menu, or select the empty row entry at the bottom of the table.
48
+
49
+
1. Select an [ID](id-property.md) from the drop-down list in the ID box or type a new ID in the **ID** box.
50
+
51
+
1. Type the [Key](../windows/accelerator-key-property.md) you want to use as an accelerator or right-click and choose **Next Key Typed** from the shortcut menu to set a key combination (the **Next Key Typed** command is also available from the **Edit** menu).
52
+
53
+
1. Change the [Modifier](../windows/accelerator-modifier-property.md) and [Type](../windows/accelerator-type-property.md), if necessary.
54
+
55
+
1. Press **Enter**.
56
+
57
+
> [!NOTE]
58
+
> Make sure all accelerators you define are unique. You can have several key combinations assigned to the same ID with no ill effect, for example, **Ctrl** + **P** and **F8** can both be assigned to ID_PRINT. However, having a key combination assigned to more than one ID will not work well, for example, **Ctrl** + **Z** assigned to both ID_SPELL_CHECK and ID_THESAURUS.
59
+
60
+
## To delete an entry from an accelerator table
61
+
62
+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
63
+
64
+
1. Select the entry you want to delete. (Hold down the **Ctrl** or **Shift** key while selecting to choose multiple entries.)
65
+
66
+
1. Right-click and choose **Delete** from the shortcut menu (or select **Delete** from the **Edit** menu).
67
+
68
+
\- or -
69
+
70
+
- Press the **Delete** key.
71
+
72
+
## To move or copy an accelerator table entry to another resource script file
73
+
74
+
1. Open the accelerator tables in both resource script files.
75
+
76
+
1. Select the entry you want to move.
77
+
78
+
1. From the **Edit** menu, choose **Copy** or **Cut**.
79
+
80
+
1. Select an entry in the target resource script file.
81
+
82
+
1. From the **Edit** menu, choose **Paste**.
83
+
84
+
> [!NOTE]
85
+
> You can also use the shortcut keys for copying and pasting.
86
+
87
+
## To change the properties of multiple accelerator keys
88
+
89
+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
90
+
91
+
1. Select the accelerator keys you want to change by holding down the **Ctrl** key as you select each one.
92
+
93
+
1. Go to the [Properties window](/visualstudio/ide/reference/properties-window) and type in the values you want all of the selected accelerators to share.
94
+
95
+
> [!NOTE]
96
+
> Each modifier value appears as a Boolean property in the **Properties** window. If you change a [Modifier](../windows/accelerator-modifier-property.md) value in the **Properties** window, the accelerator table treats the new modifier as an addition to any modifiers that were previously there. Because of this, if you set any modifier values, you will need to set all of them to ensure that every accelerator shares the same **Modifier** settings.
0 commit comments