Skip to content

Commit e5ad8f9

Browse files
authored
Merge pull request MicrosoftDocs#1681 from msebolt/resource-file-consolidation-pr2
resource file consolidation pr2
2 parents e791f14 + 042afe2 commit e5ad8f9

9 files changed

Lines changed: 109 additions & 216 deletions

‎.openpublishing.redirection.json‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7290,6 +7290,36 @@
72907290
"redirect_url": "/cpp/windows/setting-accelerator-properties",
72917291
"redirect_document_id": false
72927292
},
7293+
{
7294+
"source_path": "docs/windows/adding-an-entry-to-an-accelerator-table.md",
7295+
"redirect_url": "/cpp/windows/editing-accelerator-tables",
7296+
"redirect_document_id": false
7297+
},
7298+
{
7299+
"source_path": "docs/windows/changing-the-properties-of-multiple-accelerator-keys.md",
7300+
"redirect_url": "/cpp/windows/editing-accelerator-tables",
7301+
"redirect_document_id": false
7302+
},
7303+
{
7304+
"source_path": "docs/windows/deleting-an-entry-from-an-accelerator-table.md",
7305+
"redirect_url": "/cpp/windows/editing-accelerator-tables",
7306+
"redirect_document_id": false
7307+
},
7308+
{
7309+
"source_path": "docs/windows/editing-in-an-accelerator-table.md",
7310+
"redirect_url": "/cpp/windows/editing-accelerator-tables",
7311+
"redirect_document_id": false
7312+
},
7313+
{
7314+
"source_path": "docs/windows/finding-an-entry-in-an-accelerator-table.md",
7315+
"redirect_url": "/cpp/windows/editing-accelerator-tables",
7316+
"redirect_document_id": false
7317+
},
7318+
{
7319+
"source_path": "docs/windows/moving-or-copying-an-accelerator-table-entry-to-another-resource-script-file.md",
7320+
"redirect_url": "/cpp/windows/editing-accelerator-tables",
7321+
"redirect_document_id": false
7322+
},
72937323
{
72947324
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
72957325
"redirect_url": "/cpp/windows/activationfactory-class#activationfactory",

‎docs/windows/TOC.md‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@
5858
##### [Setting Accelerator Properties](setting-accelerator-properties.md)
5959
##### [Associating an Accelerator Key with a Menu Item](associating-an-accelerator-key-with-a-menu-item.md)
6060
##### [Editing Accelerator Tables](editing-accelerator-tables.md)
61-
###### [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)
6761
##### [Predefined Accelerator Keys](predefined-accelerator-keys.md)
6862
#### [Binary Editor](binary-editor.md)
6963
##### [Creating a New Custom or Data Resource](creating-a-new-custom-or-data-resource.md)

‎docs/windows/adding-an-entry-to-an-accelerator-table.md‎

Lines changed: 0 additions & 36 deletions
This file was deleted.

‎docs/windows/changing-the-properties-of-multiple-accelerator-keys.md‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎docs/windows/deleting-an-entry-from-an-accelerator-table.md‎

Lines changed: 0 additions & 33 deletions
This file was deleted.

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

Lines changed: 79 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Editing Accelerator Tables (C++)"
33
ms.date: "11/04/2016"
44
f1_keywords: ["vc.editors.accelerator"]
5-
helpviewer_keywords: ["accelerator tables [C++], editing", "keyboard shortcuts [C++], editing in an accelerator table"]
5+
helpviewer_keywords: ["accelerator tables [C++], editing", "keyboard shortcuts [C++], editing in an accelerator table", "searching, in accelarator tables", "accelerator tables [C++], finding entries", "accelerator tables [C++], adding entries", "New Accelerator command", "accelerator tables [C++], deleting entries", "keyboard shortcuts [C++], deleting entry from accelerator table", "accelerator tables [C++], copying entries", "rc files [C++], moving an accelerator table entry", ".rc files [C++], moving accelerator table entries", "accelerator tables [C++], moving entries", "keyboard shortcuts [C++], property changing", "accelerator tables [C++], changing properties"]
66
ms.assetid: 56e24efb-d06b-4ed9-8915-1f99f725e247
77
---
88
# Editing Accelerator Tables (C++)
@@ -11,19 +11,89 @@ 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-
- [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).
1515

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).
1718
18-
- [Adding an entry to an accelerator table](../windows/adding-an-entry-to-an-accelerator-table.md)
19+
## To edit in an accelerator table
1920

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

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

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

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.
2797
2898
## Requirements
2999

@@ -32,4 +102,4 @@ Win32
32102
## See Also
33103

34104
[Accelerator Editor](../windows/accelerator-editor.md)<br/>
35-
[Resource Editors](../windows/resource-editors.md)
105+
[Resource Editors](../windows/resource-editors.md)

‎docs/windows/editing-in-an-accelerator-table.md‎

Lines changed: 0 additions & 37 deletions
This file was deleted.

‎docs/windows/finding-an-entry-in-an-accelerator-table.md‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎docs/windows/moving-or-copying-an-accelerator-table-entry-to-another-resource-script-file.md‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)