- In the navigation pane of Dev Studio, click Records.
- Expand the User Interface category, and then click Control.
- Open the record on which you want to base your custom control.
For example: To create a Currency control that supports international formats, select pxCurrency.
- On the Control tab, review the default settings.
For example: The Currency tab contains four sections: Basics, Options, Format, and Behaviors.
The fields in each section depend on the characteristics of each control, and their configuration might be different for other components. The system populates the fields with working default settings, so that you only need to change the values that you want to customize for the new control.
- Customize the control settings:
For more information about adding actions to controls, see Adding action sets to a control.
- To change general settings, such as the property that is attached to the control, modify the fields in the Basics section.
- To change settings specific to the control type, such as tooltips, formats, or associated images, modify the fields in the Options section.
- To change the values that the control displays, such as the text or date, modify the fields in the Format section.
- To change the actions that the control triggers, in the Behaviors section, click Add, and then complete the Behavior form.
For example: In the Format section, in the Type list, select Text. Your control now supports both decimal points and commas.
- On the HTML tab, add the control to an authoring menu:
- Select Show in authoring menus, and then select the menu in
which you want to display the new control.
For example: In the Category list, select Data Capture.
- To define what image the authoring menu displays next to the control, click the Show Image View icon, and then select the image from the Image Catalog.
- Select Show in authoring menus, and then select the menu in which you want to display the new control.
- Click Save as.
- On the New tab, define the label, context, and ruleset for the
new control, and then click Create and open.
Result: Your new custom control appears in the authoring menu.