hiCreateScrollRegion
hiCreateScrollRegion(?names_name[?fieldsl_fieldEntries] [?attachmentListl_fieldAttachments] [?tabOrderIsAddOrderg_tabOrderIsAddOrder] [?labelTextt_labelText] [?borderWidthx_borderWidth] [?scrollBarsg_scrollBars] [?rightMarginx_rightMargin] [?bottomMarginx_bottomMargin] [?helpg_help] [?invisibleg_invisible] [?enabledg_enabled] ) =>r_fieldHandle
Description
Creates a scroll region field, which can be scrolled and can contain any type of field. A scroll region field is like a sub-form within a form.
A scroll region field can be used as a field only on 2D forms. Once the field is instantiated, it is referenced through the form that contains it (see the description for the s_name argument below for more information).
A scroll region field can be specified as a form field for all functions that take form field arguments. It can also be specified as the form argument for all functions for adding, moving, resizing and deleting fields from a form.
A scroll region field can also have a context menu, that is, a pop-up menu that is displayed when you right-click on the field.
A scroll region field that has an ?attachmentList specified does not get scroll bars.
Do not place a scroll region field twice in one form or two scroll region fields with the same name in one form.
You cannot place a scroll region field that has field attachments inside a form or scroll region field that does not have field attachments.
For information on creating tooltips for fields, see Creating Tool Tips for Fields.
Arguments
|
Handle to the scroll region field within a form. Once the form is instantiated, the field is referenced through the form. For example, to update the fields or access properties in a scroll region field |
|
|
List of field descriptors returned from the field creation routines. These can be fields of any type, including other scroll region fields. You must use at least one field entry. There is no upper limit on the number of fields you can use. You must specify 2D attributes for each field entry. If the field entries list includes any scroll region fields, the scroll region field is copied. Scroll region fields are never shared.
All fields placed in a scroll region field must be referenced through the form and scroll region field. If the scroll region field is within another scroll region field, then its fields are accessed through the form and both scroll region fields. For example, to access the value of a field
In the above example, if you also have a
In case you want to place a scroll region field in an hiLayout form, the
The |
|
|
List of field attachments. Field attachments determine how the two-dimensional attributes for a field are used to position that field in the scroll region. The first field attachment is applied to the first field in l_fieldEntries, the second to the second field, and so forth. You must have the same number of attachments in l_fieldAttachments as the number of fields in l_fieldEntries. If you do not want to specify a field attachment for a field, use |
|
|
Each field attachment in l_fieldAttachments consists of a bitwise OR of a list of constants. Each constant is a specification for a side of the field (left, right, top, and bottom). These attachment specifications for the sides of a field can be positional or percentage attachments. For example, an l_fieldAttachments list could be:
For details about field attachments and how to use positional and percentage constants, see Field Attachments.
A scroll region field that has an You cannot place a scroll region field that has field attachments inside a form or scroll region field that does not have field attachments. |
|
|
The nextField property set on a field (to any non- |
|
|
Title of the scroll region field. It is justified to the upper left corner of the bounding box of the field. |
|
|
Thickness of the border shadow in pixels. The default is This property can be changed interactively at any time, even after the scroll region field has been instantiated. |
|
|
Controls the appearance of scroll bars. Can have the following values: scroll bars automatically appear if a field that extends beyond the edge of the scroll region field is added. scroll bars are always present, whether or not a field extends beyond the boundary of the scroll region field. scroll bars are never present, even if a field extends beyond the boundary of the scroll region field.
Controls each scroll bar—horizontal and vertical—individually. If the first element in the list is
If you use this list as the value of g_scrollBars, the horizontal and vertical scroll bars cannot be made dynamic. |
|
|
Note: The scroll bars property can only be set when you create the scroll region field. Once the field is instantiated, you cannot change this property. |
|
|
Distance, in pixels, between the right edge of the border shadow and the edge of the field. The default is 0. The visible part of the scroll region is the width of the field minus the x_rightMargin. This property can be changed interactively at any time, even after the scroll region field is instantiated. |
|
|
Distance, in pixels, between the bottom edge of the border shadow and the edge of the field. The default is 0. The visible part of the scroll region is the height of the field minus the x_bottomMargin. This property can be changed interactively at any time, even after the scroll region field is instantiated. |
|
|
A string, symbol, list of strings, or list of symbols used to reference help. If not specified, s_name is used. This argument is currently not used. |
|
|
Specifies whether the layout and the fields within are invisible. The default value is |
|
|
Specifies whether the fields in the layout are enabled. The default value is |
|
Value Returned
Related Topics
Creating Context Menus for Fields
Return to top