Skip to content

Commit 65be4d9

Browse files
authored
Merge pull request #1687 from msebolt/resource-file-consolidation-pr7
resource file consolidation pr7
2 parents 14299e4 + f0c42be commit 65be4d9

5 files changed

Lines changed: 53 additions & 83 deletions

File tree

‎.openpublishing.redirection.json‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7370,6 +7370,16 @@
73707370
"redirect_url": "/cpp/windows/viewing-and-adding-activex-controls-to-a-dialog-box",
73717371
"redirect_document_id": false
73727372
},
7373+
{
7374+
"source_path": "docs/windows/selecting-multiple-controls.md",
7375+
"redirect_url": "/cpp/windows/selecting-controls",
7376+
"redirect_document_id": false
7377+
},
7378+
{
7379+
"source_path": "docs/windows/specifying-the-dominant-control.md",
7380+
"redirect_url": "/cpp/windows/selecting-controls",
7381+
"redirect_document_id": false
7382+
},
73737383
{
73747384
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
73757385
"redirect_url": "/cpp/windows/activationfactory-class#activationfactory",

‎docs/windows/TOC.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@
7474
####### [Default Control Events](default-control-events.md)
7575
####### [Defining Member Variables for Dialog Controls](defining-member-variables-for-dialog-controls.md)
7676
###### [Selecting Controls](selecting-controls.md)
77-
####### [Selecting Multiple Controls](selecting-multiple-controls.md)
78-
####### [Specifying the Dominant Control](specifying-the-dominant-control.md)
7977
###### [Sizing Individual Controls](sizing-individual-controls.md)
8078
###### [Making Controls the Same Width, Height, or Size](making-controls-the-same-width-height-or-size.md)
8179
###### [Setting the Size of the Combo Box and Its Drop-Down List](setting-the-size-of-the-combo-box-and-its-drop-down-list.md)

‎docs/windows/selecting-controls.md‎

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,58 @@
11
---
22
title: "Selecting Controls"
33
ms.date: "11/04/2016"
4-
helpviewer_keywords: ["Dialog Editor [C++], selecting controls", "dominant controls", "dialog box controls [C++], selecting in editor", "controls [C++], selecting", "size, controls", "controls [C++], dominant"]
4+
helpviewer_keywords: ["Dialog Editor [C++], selecting controls", "dominant controls", "dialog box controls [C++], selecting in editor", "controls [C++], selecting", "size, controls", "controls [C++], dominant", "controls [C++], removing from groups", "Dialog Editor [C++], dominant control"]
55
ms.assetid: 27f05450-4550-4229-9f4c-2c9e06365596
6+
ms.author: Michael.Blome
7+
ms.topic: tutorial
8+
ms.service: cpp
9+
author: mikeblome
610
---
711
# Selecting Controls
812

9-
Select controls to size, align, move, copy, or delete them, and then perform the operation you want. In most cases, you need to select more than one control to use the sizing and alignment tools on the [Dialog Editor toolbar](../windows/showing-or-hiding-the-dialog-editor-toolbar.md).
13+
Select controls to size, align, move, copy, or delete them, and then complete the operation you want. In most cases, you need to select more than one control to use the sizing and alignment tools on the [Dialog Editor toolbar](../windows/showing-or-hiding-the-dialog-editor-toolbar.md).
1014

11-
When a control is selected, it has a shaded border around it with solid (active) or hollow (inactive) "sizing handles," small squares that appear in the selection border. When multiple controls are selected, the dominant control has solid sizing handles; all the other selected controls have hollow sizing handles.
15+
When a control is selected, it has a shaded border around it with solid (active) or hollow (inactive) "sizing handles," small squares that appear in the selection border. When multiple controls are selected, the dominant control has solid sizing handles and all the other selected controls have hollow sizing handles.
1216

13-
When you are sizing or aligning multiple controls, the **Dialog** editor uses the "dominant control" to determine how the other controls are sized or aligned. By default, the dominant control is the first control selected.
17+
When you're sizing or aligning multiple controls, the **Dialog** editor uses the "dominant control" to determine how the other controls are sized or aligned. By default, the dominant control is the first control selected.
1418

15-
- [Selecting Multiple Controls](../windows/selecting-multiple-controls.md)
19+
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).
1620

17-
- [Specifying the Dominant Control](../windows/specifying-the-dominant-control.md)
21+
## To select multiple controls
1822

19-
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).
23+
1. In the [Toolbox Window](/visualstudio/ide/reference/toolbox), select the **Pointer** tool.
24+
25+
1. Drag the pointer to draw a selection box around the controls you want to select in your dialog box.
26+
27+
When you release the mouse button, all controls inside and intersecting the selection box are selected.
28+
29+
\- or -
30+
31+
Hold down the **Shift** key and select the controls you'd like to include in the selection.
32+
33+
\- or -
34+
35+
Hold down the **Ctrl** key and select the controls you'd like to include in the selection.
36+
37+
## To remove a control from a group of selected controls or to add a control to a group of selected controls
38+
39+
1. With a group of controls selected, hold down the **Shift** key and select the control you want to remove from or add to the existing selection.
40+
41+
> [!NOTE]
42+
> Holding down the **Ctrl** key and selecting a control within a selection will make that control the dominant control in that selection.
43+
44+
## To specify the dominant control
45+
46+
1. Hold down the **Ctrl** key and click the control you want to use to influence the size or location of other controls *first*.
47+
48+
> [!NOTE]
49+
> The sizing handles of the dominant control are solid while the handles of subordinate controls are hollow. All further resizing or alignment is based on the dominant control.
50+
51+
## To change the dominant control
52+
53+
1. Clear the current selection by clicking outside all the currently selected controls.
54+
55+
1. Repeat the previous procedure, selecting a different control first.
2056

2157
## Requirements
2258

‎docs/windows/selecting-multiple-controls.md‎

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

‎docs/windows/specifying-the-dominant-control.md‎

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

0 commit comments

Comments
 (0)