Form Control Classes

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

A system class exists for each type of form control. You use the methods of the form control system classes to work with controls by using X++ code. If you use the Application Object Tree (AOT), you can use the Override Method shortcut to see many of the methods for the control. To use the AOT to override a method, you follow these steps:

  1. In the AOT, expand the control, and then right-click the Methods node of the control.

  2. Click Override Method, and then click the method that you want to override.

The form system classes for controls have names such as Form Controlname Control. For example, FormIntControl, FormTabPageControl, and FormCheckBoxControl. However, there are cases where the ControlName in the Application Object Tree (AOT) and the name of the form control class do not match. For more information about these methods, see Methods on Form Controls.

The following table describes which class contains the methods for manipulating each type of form control.

Form control type

Class

ActionPane

FormActionPaneControl

ActionPaneTab

FormActionPaneTabControl

ActiveX

FormActiveXControl

Animate

FormAnimateControl

Button

FormButtonControl

ButtonGroup

FormButtonGroupControl

CheckBox

FormCheckBoxControl

ComboBox

FormComboBoxControl

CommandButton

FormCommandButtonControl

DateEdit

FormDateControl

DropDialogButton

FormDropDialogButtonControl

Grid

FormGridControl

Group

FormGroupControl

GuidEdit

FormGuidControl

HTML

FormHTMLControl

Int64Edit

FormInt64Control

IntEdit

FormIntControl

ListBox

FormListBoxControl

ListView

FormListControl

ManagedHost

FormManagedHostControl

MenuItemButton

FormFunctionButtonControl

MenuButton

FormMenuButtonControl

Progress

FormProgressControl

RadioButton

FormRadioControl

RealEdit

FormRealControl

ReferenceGroup

FormReferenceGroupControl

SegmentedEntry

FormSegmentedEntryControl

Separator

FormButtonSeparatorControl

StaticText

FormStaticTextControl

StringEdit

FormStringControl

Tab

FormTabControl

TabPage

FormTabPageControl

Table

FormTableControl

TimeEdit

FormTimeControl

Tree

FormTreeControl

Window

FormWindowControl

Note

You will also find a set of system classes called the form build control classes. The names of these are the same as the classes in the previous table except that they are prefixed with "FormBuild" instead of "Form." The form build classes contain methods that you can use to set the values of the properties for the control.

See also

Overview of Form Control Types

Form Control Properties

Form Classes

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.