ddHiCreateViewComboField
ddHiCreateViewComboField(?names_fieldName[?promptt_fieldPrompt] [?valuet_currentValue] [?defValuet_defaultValue] [?callbackg_callback] [?editableg_editable] [?enabledg_enabled] [?invisibleg_invisible] [?nextFieldg_nextField] [?toolTipt_toolTip] [?viewTypesl_viewTypes] [?validationTypeg_validationType] [?highlightTypeg_highlightType] ) =>r_comboField
Description
Creates a customized View combo field, which is an extension of a regular combo field, for selecting views.
Arguments
|
A handle to this field within a form. To reference it, use |
|
|
A string specifying the prompt for the field. To reference it, use |
|
|
The initial and current values of this field. To reference it, use |
|
|
The default value of the field. This value is equal to the initial entry in t_currentValue, if t_defaultValue is not specified. To reference the default value, use |
|
|
A string, symbol, or function object type callback that is executed if the value of the field changes. If a new value is typed in, the callback is called when the field has “lost focus”. This happens for example, when you move the pointer outside the form, or tab to another field, or when you select any button in the form. |
|
|
Specifies whether the field is enabled. The default value is |
|
|
Specifies whether the field is invisible. The default value is |
|
|
A symbol or string indicating the next field to bring into focus when the Tab key is pressed. If you specify |
|
|
The tool tip that is displayed when the pointer hovers over the field. |
|
|
A list of DFII view types (string). The list is used for view-type based filtering in the view combo field. A view is made available for selection only if the view type associated with its master file is a member of the l_viewTypes list. |
|
|
Specifies the criteria that determines if the input is valid or not. Acceptable values (symbol) are: |
|
|
Specifies when and how a widget is to be highlighted. Acceptable values (symbol) are: The first three values have the same definitions as given for the g_highlighType argument of hiHighlightField.
Setting the property to |
|
Values Returned
Examples
A View combo field is created.
trCreateBlockViewName = ddHiCreateViewComboField( ?name 'viewName ?prompt "View" ?defValue "symbol" ?value "symbol" ?callback "trCreateBlockViewNameCB ( trCreateBlockForm 'viewName )"
)
Additional Information
On the Library, Cell, and View combo boxes, you have a filter property that enables you to customize your search. You need to specify the value of the filter property as a list, where the first member denotes the method for filtering.
The following filtering methods are supported:
-
'wildCard: Specifies the value of the filter property as a list, where the first member is'wildCard. For example,(list 'wildCard "Mos*") -
'regExp: Specifies the value of the filter property as a list, where the first member is'regExp. For example,(list 'regExp "^[0-9]_") -
'viewTypes: Specifies the value of the filter property as a list, where the first member is'viewType. This method can only be applied on the View combo box. For example,(list 'viewType "schematicSymbol" "schematic") -
'custom: Specifies a custom filter by assigning the filter property on Library, Cell, and View combo boxes. For example,cell_combo_box->filter=(list 'custom callable_or_filterInstance, where the first member is'customand the second membercallable_or_filterInstanceis either a SKILL callable or an instance ofddHiObjFilter.
In a custom filter, when the second member is a SKILL function (callable), the function is used as the accepts method. It is called with an argument of ddId type. A dd object becomes available for the selection in the combo box only if the function returns a non-nil value.
If the function returns nil on a specified dd object, the object is considered as non-existent. If you assign nil to the filter property, filtering gets turned off on the LCV combo box.
When a SKILL function (callable) is given as a custom filter on a View combo box, a default preferred method is supplied. It always returns the first member of a specified dd objects list.
If an error occurs in a SKILL callable, the given dd object is regarded as accepted. A maximum of three invocations are made if an error occurs in the SKILL callable.
Alternatively, the second member can be an instance of ddHiObjFilter, or an instance of a subclass of ddHiObjFilter. The ddHiObjFilter class defines two override methods, ddoAccepts and ddoPreferred.
Both accepts and preferred methods must be prefixed with ddo, where o indicates override.
If an error occurs in the ddoAccepts method, the specified dd object is considered as accepted. Whereas, if an error occurs in the ddoPreferred method, the first dd object in the specified list is used.
A maximum of three invocations are made if an error occurs in any of these methods.
Related Topics
Return to top