Anchoring fields to the right side of a form or panel
By default, the horizontal position of a field in a form or panel is based on its distance from the left side of its container. This distance remains the same regardless of the size of the container. The field's distance from the right side of the container, however, varies depending on the size of the container.
For example, the logo in the following figure appears in the top-right corner of the form:
(Click the image to expand it.)
But when the browser window is enlarged, the logo no longer appears in the top-right corner because its horizontal position is set relative to the left side of the form:
(Click the image to expand it.)
To prevent the distance between a field and the right side of a form from changing, you must anchor the field to the right side of the form instead of to the left side:
(Click the image to expand it.)
This feature is available only in the mid tier.
To anchor a field to the right side of a form or panel
- Open the appropriate form in BMC Remedy Developer Studio.
- Set the Layout Style property of the form or panel to XY.
- Select the field that you want to anchor.
- Set the field's Alignment property to Right.
- Use one of these methods to position the field:
- Enter the appropriate number of pixels in the field's X (distance from right side) and Y (distance from top) properties.
- Drag the field to the appropriate position. The field's X and Y properties are automatically updated.
- Save the form.
The current distance between the field and the right side of its container will be maintained when the container is displayed in a browser regardless of the width of the browser window.