Visual Parts Reference : Parts Reference : Container Details : Container Details general advice : Modifying the properties of an edit policy widget
Modifying the properties of an edit policy widget
You can control the properties of the edit policy widget by connecting the aboutToBeginEdit event of the container details column part to a custom script that you create.
In your script you must pass three parameters. The first parameter is the edit policy. Each edit policy has its own public interface of methods that allow you to control the function of the actual widget. For example, the combo box has a method called editable: which takes aBoolean as its parameter. If you set it to false, it makes the combo box appear like a read-only drop-down list.
The spin button has a method to control whether it is processing string or numeric values; it also allows for setting minimum, maximum, and increment values. An example of this is shown in AbtContainerSpinButtonEditPolicyExampleView. Note the spinButtonAboutToBeginEdit:callData:clientData: method.
For further information on controlling the edit policy for a widget, browse the EwEditPolicy class hierarchy for details.
Last modified date: 01/29/2015