Using Controls in a Form Design [AX 2012]

This topic has not yet been rated - Rate this topic

Updated: January 27, 2012

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

The design of a form is determined by the controls that you add to the form, and the properties that you set on the Design node and on the individual controls.

To ensure a uniform application interface, many properties have Auto values. This enables a form to be created using a drag-and-drop operation, setting only a few properties manually.

Tab Pages

Tab pages 通过在Tab控件容器上添加 Tabpage控件来创建. For more information, see Walkthrough: Create a Form that Has Tabbed Pages.

Buttons

Buttons一般由ButtonGroup控件组织在一个组里. 这里有几种不同的button控件:

  • CommandButton controls: Buttons 使用命令执行一个命令.例如: Open, Save, and Select All.
  • MenuButton controls: Buttons 打开一个包含MenuItemButton控件的子菜单.
  • MenuItemButton controls: Buttons 活动的菜单项. 例如,一个 MenuItemButton 可能打开另一个窗体.
  • Button controls: 其他类型的buttons.

Field Groups

窗体上的Fields,一般被Group控件组织在一个组里.如果你从数据源里拖field group到窗体的Design节点上, Group 控件会自动创建.你也能手工将控件分组.

分组的标题,用Group 控件的Caption属性设置.

要改变group中fields的顺序,可以执行下面的做法:

  • Re-arrange the fields 当窗体在design模式.在窗体的design节点点右键,选择Edit,会以design模式打开窗体.
  • Re-arrange the fields 在窗体的design节点.
  • Re-arrange the fields 在table的group里.

Size of Controls

The size of a control is defined as the size of the control itself plus the control label.

The following form shows five groups (in different colors) that each have one or more controls.

The width of the groups is determined by the width of the longest control on the form, as all groups are set to have the same width, using the AlignChildrenproperty (see "Alignment of Controls" later in this topic).

The dimensions of a control are set by the Width and Height properties. The Auto settings for these properties make allowances for preferences with respect to font, font style, font size, and so on, in that the dimensions change dynamically when, for example, a larger font size is selected.

Position of Controls

The ArrangeMethod property on the form design or on a Group control determines whether child field groups should be arranged in columns or in rows.

Container controls (Tab, Tabpage, and Group) are arranged in one or more columns as specified by the Columns property on the parent control or the form design.

The VerticalSpacing property defines the space (in pixels) after the control.

In the following example, the Columns property has been changed from 1 to 2 on the form design, and the VerticalSpacing property for the first group (the shaded group) has been changed from Auto to 40.

The Top and Left properties on a control allow you to position a control at one of the corners of the form window, or you can specify coordinates to give an exact position. When controls are arranged on a form, a control where you have entered coordinates has a higher priority than a control that has Auto settings for the properties.

Alignment of Controls

The three central alignment properties for a form control are:

  • AlignChildren: Set on the form design, or container controls. When set to Yes, the immediate children of the control are aligned in the same manner.
  • AlignChild: Set on container controls. When set to No, the container control is not included in the alignment set by the parent container control.
  • AlignControl: Set on individual controls. When set to No, the container control is not included in the alignment set by the parent container control.

In the following example, the second control in the first group (called "Label") has the AlignControl property set to No. This control is not aligned to the right-margin of the group like the first control. In the second group (shown in yellow), the AlignChild property has been set to No. This group has a different width compared to the other control groups (the width of the group is set by the widest control in the group, rather than the widest control on the form).

See also

Overview of Form Control Types

Form Design Properties

Form Control Properties

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Using Controls in a Form Design [AX 2012]的更多相关文章

  1. Overview of Form Control Types [AX 2012]

    Overview of Form Control Types [AX 2012] Other Versions 0 out of 1 rated this helpful - Rate this to ...

  2. AX 2012 Form and Parts

    在AX 2012 中系统标准FORM 中绝大部分都应用parts,form 和parts 是不可分开. 说到底parts到底是什么呢? Parts :我个人理解是为了在一个form中的显示更多信息而存 ...

  3. How to: Enable and Disable an Action Pane Button on a List Page [AX 2012]

    Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynami ...

  4. Hosting custom WPF calendar control in AX 2012

    原作者: https://community.dynamics.com/ax/b/axilicious/archive/2013/05/20/hosting-custom-wpf-calendar-c ...

  5. Table Properties [AX 2012]

    Table Properties [AX 2012] 1 out of 2 rated this helpful - Rate this topic Updated: July 20, 2012 Ap ...

  6. Extended Data Type Properties [AX 2012]

    Extended Data Type Properties [AX 2012] This topic has not yet been rated - Rate this topic Updated: ...

  7. 关于AX 2012 SSRS 导出PDF时出现group by 分页错误的情况

    近期,在AX  2012 上一个二次开发的报表出现了一个奇怪的现象,报表设计正常,分组.分页设计正常, 但出现问题在,当报表在AX 上打开,按dataareaid 分页是正常的,如下图中title中的 ...

  8. View Properties [AX 2012]

    View Properties [AX 2012] Other Versions This topic has not yet been rated - Rate this topic Updated ...

  9. Temporary TempDB Tables [AX 2012]

    Temporary TempDB Tables [AX 2012] 1 out of 4 rated this helpful - Rate this topic Updated: November ...

随机推荐

  1. Java控制语句——if语句

    Java控制语句分为三大类:①顺序结构:②选择结构:③循环结构. 选择结构又分为:①单选择结构:②双选择结构:③多选择结构. 主要涉及: if_else , switch , while , brea ...

  2. linux type命令用法_转

    转自:http://codingstandards.iteye.com/blog/831504 在脚本中type可用于检查命令或函数是否存在,存在返回0,表示成功:不存在返回正值,表示不成功. $ t ...

  3. 删除SSMS中保存的帐户信息

    通常我们在对象资源管理器中连接服务器时,会发现在服务器名称下保存有之前的实例信息.随着连接增多,要找某个连接还得费劲.sql2012:此时可以删除C:\Users\Administrator\AppD ...

  4. 解决:CWnd::SetWindowText报Assertion failure

    参考资料: http://www.cnblogs.com/tiancun/p/3756581.html http://www.tc5u.com/mfc/2120698.htm http://forum ...

  5. FB面经prepare: Task Schedule

    每种task都有冷却时间,比如task1执行后,要经过interval时间后才能再次执行,求总共所需时间. 用HashMap保存每一个task的下一次可以开始执行的最早时间 package TaskS ...

  6. ShareSDKForANE 打包笔记

    最近做了一个ShareSDK IOS的接入 (ANE) , 现在想想其实很简单 不过由于对Xcode,ANE的不熟悉也折腾了好久, 舔着脸打扰客服好几天… 呵呵 目前把我接入的一些步骤列出来 希望能帮 ...

  7. nyist 593 Take it easy

    http://acm.nyist.net/JudgeOnline/problem.php?pid=593 Take it easy 时间限制:1000 ms  |  内存限制:65535 KB 难度: ...

  8. [原创]java WEB学习笔记51:国际化 概述,API 之 locale类,dataFormat类,numberFormat类, MessageFormat类,ResourceBundle 类

    本博客为原创:综合 尚硅谷(http://www.atguigu.com)的系统教程(深表感谢)和 网络上的现有资源(博客,文档,图书等),资源的出处我会标明 本博客的目的:①总结自己的学习过程,相当 ...

  9. c++之路进阶——codevs1286(郁闷的出纳员)

    1286 郁闷的出纳员 2004年NOI全国竞赛  时间限制: 1 s  空间限制: 128000 KB  题目等级 : 大师 Master       题目描述 Description OIER公司 ...

  10. 用xml添加动画

    在res文件夹下新建anim文件夹 在anim文件夹新建anim.xml anim.xml: <?xml version="1.0" encoding="utf-8 ...