hiOffsetFields
hiOffsetFields(r_2DFormOr2DMenul_fields l_offsets) =>t / nil
Description
Offsets several fields from their current positions. All fields are offset by the same distance, they move as a block. This function cannot be used for fields that have field attachments. Use hiReattachField for fields with field attachments.
This routine adds the x and y offset values and the current x and y values to determine the new field position. An offset of 0 have no effect. Negative offsets can be specified, but the minimum value of the new x and y is 0. Both offset values are required.
The form must be instantiated.
To offset only one field, use hiOffsetField.
Arguments
|
Two-dimensional form or menu returned from |
|
|
Distance in pixels the field is set off from the current position. offsets is of the form: |
Value Returned
Examples
Offsets the fields ‘(myField myField2 ) by -10:0 pixels from the current location
hiOffsetFields ( testform ‘(myField myField2 ) -10:0 )
=> t
Related Topics
Return to top