Skip to content

Commit 042afe2

Browse files
author
msebolt
committed
touch-ups, Acrolinx
1 parent 91f84d5 commit 042afe2

1 file changed

Lines changed: 12 additions & 27 deletions

File tree

‎docs/windows/editing-accelerator-tables.md‎

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ In a C++ project, you can edit an accelerator table directly with in-place editi
1111

1212
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.
1313

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+
1419
## To edit in an accelerator table
1520

1621
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
1722

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.
2224

2325
1. Select from the drop-down combo box or type in place to make changes.
2426

@@ -34,29 +36,23 @@ The procedures below refer to the use of standard property pages, however, both
3436

3537
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
3638

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.
4140

4241
You can then scan the list and find the entry.
4342

4443
## To add an entry to an accelerator table
4544

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).
5046

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.
5248

5349
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.
5450

5551
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).
5652

5753
1. Change the [Modifier](../windows/accelerator-modifier-property.md) and [Type](../windows/accelerator-type-property.md), if necessary.
5854

59-
1. Press **ENTER**.
55+
1. Press **Enter**.
6056

6157
> [!NOTE]
6258
> 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.
6561

6662
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
6763

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.)
7265

7366
1. Right-click and choose **Delete** from the shortcut menu (or select **Delete** from the **Edit** menu).
7467

@@ -80,9 +73,6 @@ You can then scan the list and find the entry.
8073

8174
1. Open the accelerator tables in both resource script files.
8275

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-
8676
1. Select the entry you want to move.
8777

8878
1. From the **Edit** menu, choose **Copy** or **Cut**.
@@ -98,18 +88,13 @@ You can then scan the list and find the entry.
9888

9989
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
10090

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.
10592

10693
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.
10794

10895
> [!NOTE]
10996
> 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.
11097
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).
112-
11398
## Requirements
11499

115100
Win32

0 commit comments

Comments
 (0)