Placing Multiple AbsoluteLayout Containers Inside a Tab Control
Placing multiple AbsoluteLayout Containers inside Tab Pane containers is an easy way to break up a long documents or forms into more manageable sized parts.
In the UX Builder on the UX Controls page open the 'Data Controls' menu. Click on the [TextBox] option to add a textbox control to the component. Give the control the name and label ''.
Add five more [TextBox] controls with the names and labels '', '', '', '', and ''.
Highlight all of the controls in the controls tree. Open the 'Containers' menu and click on the [Container] option.
From the 'Container Type' list select the 'AbsoluteLayout' option and click OK.
Highlight the opening absolute layout container tag, [AbsoluteLayout: ABSOLUTELAYOUT_1].
In the properties list on the right check the 'Has background image' checkbox in the Container Begin Properties section.
Click the [...] button next to the 'Background image' property.
Select the 'Image in Web Project or Style' radio button and click the 'Select' button. Choose the 'Select from Web Project Folder' option.
Click the "Add Image to Project" button.
Click the 'up' button next to the 'Source filename' textbox.
Set the file extension of the image you want to load, navigate to the image, and click 'Open', then OK and OK again.
With the 'AbsoluteLayout' tag still highlighted click the [...] button next to the 'Absolute positions for controls' property.
In the middle panel of the 'Set Absolute Position and Size' editor drag out the dotted line to make it the same size as the background image. This line represents the size of the layout.
Highlight the '' field in the list of fields in the left corner of the .
Place the mouse cursor in the layout editor. Hold down the left mouse button and drag the mouse right and down. A rectangle representing the size of the highlighted control will appear on the layout. Lift the left mouse button to add the control to the layout.
Add the remaining controls to the layout from the list on the left and click OK.
For the second AbsoluteLayout repeat the steps in the section above. Add the following [TextBox] controls, '', '', and '' to the component and use the following image a for the absolute layout's "Background image" property.
For the third AbsoluteLayout repeat the same steps. Add the following [TextBox] controls, '', '', and '' to the component and use the following image a for the absolute layout's "Background image" property.
Highlight the first 'AbsoluteLayout' container's opening tag. In the 'Containers' menu and click on the [Tab Pane] option. Name the Tab Pane 'Page 1'.
Highlight the newly defined [Tab Pane] container. Click the blue 'up up' arrow in the Controls page toolbar. This will move the control to the top of the controls tree.
Highlight the first AbsoluteLayout container's closing tag, [AbsoluteLayoutEnd:ABSOLUTELAYOUT_1]. In the 'Containers' menu click on the [Tab Pane] option again. Give the new tab pane the name 'Page 2'.
Highlight the second 'AbsoluteLayout' container's closing tag, [AbsoluteLayoutEnd:ABSOLUTELAYOUT_2]. In the 'Containers' menu click on the [Tab Pane] option again. Give the new tab pane the name 'Page 3'.
Highlight everything in the controls tree. Open the 'Containers' menu and click the [Tab Control] option.
Select the 'Tab control' radio button option and click OK.
Run the component in Live Preview. The page tabs should appear at the top of the component. Click on Page 1, Page 2, or Page 3 to open the corresponding AbsoluteLayout.
The tab control can be set to move from one page to the next using 'Previous' and 'Next' buttons.
On the 'Design' pane open the UX Controls page. Highlight the tab control's opening tag, [Tab Control: TAB_1].
In the properties list on the right check the 'Genie style' checkbox in the 'Tab/Accordion Control Properties' section. A seperate 'Genie Properties' section will open in the control properties list. The genie properties will allow you to set how the genie will appear when the tab control is run.
Run the component in Live Preview. The tab page navigation should now be styled to use 'Cancel', Previous' and 'Next' buttons.