|
1 | 1 | --- |
2 | 2 | title: "Selecting Controls" |
3 | 3 | 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"] |
5 | 5 | ms.assetid: 27f05450-4550-4229-9f4c-2c9e06365596 |
| 6 | +ms.author: Michael.Blome |
| 7 | +ms.topic: tutorial |
| 8 | +ms.service: cpp |
| 9 | +author: mikeblome |
6 | 10 | --- |
7 | 11 | # Selecting Controls |
8 | 12 |
|
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). |
10 | 14 |
|
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. |
12 | 16 |
|
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. |
14 | 18 |
|
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). |
16 | 20 |
|
17 | | -- [Specifying the Dominant Control](../windows/specifying-the-dominant-control.md) |
| 21 | +## To select multiple controls |
18 | 22 |
|
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. |
20 | 56 |
|
21 | 57 | ## Requirements |
22 | 58 |
|
|
0 commit comments