Skip to content

Commit 91f84d5

Browse files
author
msebolt
committed
resource file consolidation pr2
1 parent e791f14 commit 91f84d5

9 files changed

Lines changed: 123 additions & 215 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: 93 additions & 8 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,17 +11,102 @@ 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+
## To edit in an accelerator table
1515

16-
- [Finding an entry in an accelerator table](../windows/finding-an-entry-in-an-accelerator-table.md)
16+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
1717

18-
- [Adding an entry to an accelerator table](../windows/adding-an-entry-to-an-accelerator-table.md)
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).
1920
20-
- [Deleting an entry from an accelerator table](../windows/deleting-an-entry-from-an-accelerator-table.md)
21+
1. Select an entry in the table and click to activate in-place editing.
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 from the drop-down combo box or type in place to make changes.
2324

24-
- [Changing the properties of multiple accelerator keys](../windows/changing-the-properties-of-multiple-accelerator-keys.md)
25+
- For [ID](id-property.md), select from the list or type to edit.
26+
27+
- For [Modifier](../windows/accelerator-modifier-property.md), select from the list.
28+
29+
- For [Key](../windows/accelerator-key-property.md), select from the list or type to edit.
30+
31+
- For [Type](../windows/accelerator-type-property.md), select **ASCII** or **VIRTKEY** from the list.
32+
33+
## To find an entry in an open accelerator table
34+
35+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
36+
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.
41+
42+
You can then scan the list and find the entry.
43+
44+
## To add an entry to an accelerator table
45+
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).
50+
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.
52+
53+
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+
55+
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+
57+
1. Change the [Modifier](../windows/accelerator-modifier-property.md) and [Type](../windows/accelerator-type-property.md), if necessary.
58+
59+
1. Press **ENTER**.
60+
61+
> [!NOTE]
62+
> 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.
63+
64+
## To delete an entry from an accelerator table
65+
66+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
67+
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.)
72+
73+
1. Right-click and choose **Delete** from the shortcut menu (or select **Delete** from the **Edit** menu).
74+
75+
\- or -
76+
77+
- Press the **Delete** key.
78+
79+
## To move or copy an accelerator table entry to another resource script file
80+
81+
1. Open the accelerator tables in both resource script files.
82+
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+
1. Select the entry you want to move.
87+
88+
1. From the **Edit** menu, choose **Copy** or **Cut**.
89+
90+
1. Select an entry in the target resource script file.
91+
92+
1. From the **Edit** menu, choose **Paste**.
93+
94+
> [!NOTE]
95+
> You can also use the shortcut keys for copying and pasting.
96+
97+
## To change the properties of multiple accelerator keys
98+
99+
1. Open the accelerator table by double-clicking its icon in [Resource View](../windows/resource-view-window.md).
100+
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.
105+
106+
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+
108+
> [!NOTE]
109+
> 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.
25110
26111
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).
27112

@@ -32,4 +117,4 @@ Win32
32117
## See Also
33118

34119
[Accelerator Editor](../windows/accelerator-editor.md)<br/>
35-
[Resource Editors](../windows/resource-editors.md)
120+
[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.

0 commit comments

Comments
 (0)