Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 2.43 KB

File metadata and controls

41 lines (28 loc) · 2.43 KB
title Modifying the Layout Grid | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.technology
cpp-windows
ms.topic conceptual
dev_langs
C++
helpviewer_keywords
controls [C++], layout grid
snap to layout grid
grids, turning on or off
layout grid in Dialog Editor
grids, changing size
ms.assetid ec31f595-7542-485b-806f-efbaeccc1b3d
author mikeblome
ms.author mblome
ms.workload
cplusplus
uwp

Modifying the Layout Grid

When you are placing or arranging controls in a dialog box, you can use the layout grid for more precise positioning. When the grid is turned on, controls appear to "snap to" the dotted lines of the grid as if magnetized. You can turn this "snap to grid" feature on and off and change the size of the layout grid cells.

To turn the layout grid on or off

  1. From the Format menu, choose Guide Settings.

  2. In the Guide Settings Dialog Box, select or clear the Grid button.

    You can still control the grid in individual Dialog editor windows using the Toggle Grid button on the Dialog Editor Toolbar.

To change the size of the layout grid

  1. From the Format menu, choose Guide Settings.

  2. In the Guide Settings Dialog Box, type the height and width in DLUs for the cells in the grid. The minimum height or width is 4 DLUs. For more information on DLUs, see The Arrangement of Controls on Dialog Boxes.

For information on adding resources to managed projects, please see Resources in Desktop Apps 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. For information on globalization and localization of resources in managed apps, see Globalizing and Localizing .NET Framework Applications.

Requirements

Win32

See Also

Dialog Editor States (Guides and Grids)
Controls in Dialog Boxes