A custom panel typically includes three controls for each
field in the application’s DCO: Label control, Image control, and
Recognition or Data Entry control.
The template for generating controls is in the dotLayout.cs control,
where you can modify controls, visual styles, sizes, and the locations
of labels, snippets, and DCEdit controls. When
you generate a panel, DotEdit uses the dotLayout template
to produce a custom form.
.
- Label (System.Windows.Forms.Label)
- This label is a standard label control (for example, Other_Charges_Line_Item0).
The text property is set to the field’s type attribute in the DCO.
- Image snippet control (AxDCIMAGELib.AxDcimage)
- This control is a custom Datacap image control (DCImage).
For example, the image snippet can be a handwritten number. The runtime
version displays the section of the page image that is defined by
the position coordinates in the DCO file.
- Recognition/data entry control (AxDCEDITLib.AxDcedit or System.Windows.Forms.ComboBox)
- This control is either a custom Datacap edit control (DCEdit)
or a standard combination box. The edit control is used unless a RecogType
variable is defined in the DCO file. The runtime version displays
the output from the recognition engine and allows the user to make
corrections.
Additionally, each control’s Tag property equals the field’s type
attribute in the DCO. The tag property for the label control, DCImage control,
and DCEdit control is set to Other_Charges_Line_Item0.