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 042afe2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/windows/editing-accelerator-tables.md
+12-27Lines changed: 12 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,16 @@ 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
+
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
+
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).
18
+
14
19
## To edit in an accelerator table
15
20
16
21
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
17
22
18
-
> [!NOTE]
19
-
> 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).
20
-
21
-
1. Select an entry in the table and click to activate in-place editing.
23
+
1. Select an entry in the table and select to activate in-place editing.
22
24
23
25
1. Select from the drop-down combo box or type in place to make changes.
24
26
@@ -34,29 +36,23 @@ The procedures below refer to the use of standard property pages, however, both
34
36
35
37
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
36
38
37
-
> [!NOTE]
38
-
> 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).
39
-
40
-
1. Click a column head to sort the contents of the column alphabetically. For example, click **ID** to display all the IDs in your accelerator table alphabetically.
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.
41
40
42
41
You can then scan the list and find the entry.
43
42
44
43
## To add an entry to an accelerator table
45
44
46
-
1. In a C++ project, open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
47
-
48
-
> [!NOTE]
49
-
> 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).
45
+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
50
46
51
-
1. Right-click within the accelerator table and choose **New Accelerator** from the shortcut menu, or click on the empty row entry at the bottom of the table.
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.
52
48
53
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.
54
50
55
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).
56
52
57
53
1. Change the [Modifier](../windows/accelerator-modifier-property.md) and [Type](../windows/accelerator-type-property.md), if necessary.
58
54
59
-
1. Press **ENTER**.
55
+
1. Press **Enter**.
60
56
61
57
> [!NOTE]
62
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.
@@ -65,10 +61,7 @@ You can then scan the list and find the entry.
65
61
66
62
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
67
63
68
-
> [!NOTE]
69
-
> 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).
70
-
71
-
1. Select the entry you want to delete. (Hold down the **Ctrl** or **Shift** key while clicking to select multiple entries.)
64
+
1. Select the entry you want to delete. (Hold down the **Ctrl** or **Shift** key while selecting to choose multiple entries.)
72
65
73
66
1. Right-click and choose **Delete** from the shortcut menu (or select **Delete** from the **Edit** menu).
74
67
@@ -80,9 +73,6 @@ You can then scan the list and find the entry.
80
73
81
74
1. Open the accelerator tables in both resource script files.
82
75
83
-
> [!NOTE]
84
-
> 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).
85
-
86
76
1. Select the entry you want to move.
87
77
88
78
1. From the **Edit** menu, choose **Copy** or **Cut**.
@@ -98,18 +88,13 @@ You can then scan the list and find the entry.
98
88
99
89
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
100
90
101
-
> [!NOTE]
102
-
> 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).
103
-
104
-
1. Select the accelerator keys you want to change by holding down the **Ctrl** key as you click each one.
91
+
1. Select the accelerator keys you want to change by holding down the **Ctrl** key as you select each one.
105
92
106
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.
107
94
108
95
> [!NOTE]
109
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.
110
97
111
-
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).
0 commit comments