If layout control is used on MxPart component, very extensive customization is enabled even in runtime. For designing the user interface, Customization window is available. It can be accessed both in design time as well as in runtime.
To access Customization window
- Right click MxControl in the layout section of the control.
- Select option Customize Layout.
Customization window offers several commands for managing layout. Commands are accessible through buttons at the top of the window.
Command | Description |
---|---|
Open | Opens existing layout from an XML file and overrides the current layout. |
Save | Saves current layout to an XML file for future use. Saved layouts can then be used on other user interfaces. |
Customization window consists of two sections; Hidden Items and Layout Tree View.
Hidden Items
Section contains items that can be used to design and customize the appearance of user interface. Each item can be used in any number of times on a single user interface. Several items are available.
Item | Description |
---|---|
Empty Space Item | Item is used for creating empty space on user interface. The item is useful in cases when a control is presented too big and needs to be smaller. In this case empty space item comes in handy. |
Label | Item for adding some sort of a text to the user interface. Label can serve as information, description or simply a title of some sort. |
Separator | Item is used for separating two controls or groups of controls vertically. Using the item it is possible to resize the control in width by which the other control shrinks or widens accordingly. |
Splitter | Item is used for separating two controls or groups of controls horizontally. Using the item it is possible to resize the control in height by which the other control shrinks or widens accordingly. |
Layout Tree View
Section contains all controls currently on user interface and all available hidden items. Controls are represented by the values defined in the Text property of each control. It is also possible to delete individual control from the user interface. To do that, select the desired control in the list and press the Delete key.
MxPart
Layout