Tutorial: Building an Rogue Wave Server Application > Defining Dynamic Views Using Rogue Wave Server Studio > Defining the DomainsOfNetwork View > Setting Attachments
 
Setting Attachments
The attachment function allows you to specify how objects in the window change when the window is resized.
To specify the attachments for the table gadget in the Network panel so that it will resize proportionally when the window is resized, do the following:
1. Align and arrange gadgets in the Main window as illustrated by Figure 8.4.
2. Activate the Selection mode by clicking on the arrow-pointer icon in the Editing Modes palette, and double-click on the table gadget in the Main window.
3. In the Table Gadget inspector, use the combo box menu to change the Auto Fit field to Proportional, then click Apply.
The table columns will be resized proportionally when you change the table size.
4. Click on the Attachments button in the Editing Modes palette of the Main window.
Yellow guides and numbers appear along the top and left window borders.
5. Set the attachments for the table by dragging a line from the left center handle to the left border guide, and the top center handle to the top border guide.
All other attachments are set by default. The attachment you have just set (fixed, elastic, fixed) resizes the gadget proportionally while keeping it at the same distance from the borders.
6. Double-click on the table.
The Attachment inspector panel for the object appears (when in Attachment editing mode).
7. Type 10 in the boxes of the inspector panel to keep the table gadget 10 pixels from the borders and click Apply.
8. Activate the Selection mode and drag the table gadget down to show the Network label and entry field again.

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.