This topic describes the properties located on the Look tab of the Properties Editor.
The properties that are available on the Look tab vary depending on whether you place a widget on a Flex form or a VBox form.
The following are the Look properties available for widgets placed on a Flex form.
Denotes the name of a widget. When a widget is added to a form, a unique name is assigned to the widget. You can rename a widget by entering a new name in the ID box.
Note: You can also rename a widget from the Project Explorer by right-clicking a widget, and then clicking Rename.
Controls whether or not the widget is visible to the user of the app.
Defines whether a widget appears on a specific platform. By default, a widget is rendered for all platforms.
To change what platforms a widget is rendered for, do the following:
Rendering refers to the commitment of resources to generate a widget in an app for a particular platform. To be visible refers to whether the user of an app can see and interact with a rendered widget. Functionally speaking, rendering must take place before a widget can be made visible or invisible. If a widget is not rendered, the value of it's visibility property is irrelevant.
Allows you to define how content lines up within the widget. Following alignment options are available:
Note: Horizontal alignment of a widget is possible only when the Expand Horiz property is enabled.
You can define the content alignment of a widget specific to a platform by forking Content Align. For more information, see Fork a Widget Property.
Specifies the text displayed on a widget.
Specifies whether the text should be displayed on a widget.
You can choose to display the text specific to a platform by forking Display Text. For more information, see Fork a Widget Property.
The Flex properties enables you to resize, move and position a widget.
Determines the left edge of the widget and measured from the left bound of the parent container.
Determines the right edge of the widget and measured from the right bound of the parent container.
Determines the top edge of the widget and measured from the top bounds of the parent container.
Determines the bottom edge of the widget and measured from the bottom bounds of the parent container.
Width determines the width of the widget as measured along the x-axis.
Following are the options that can be used as units of width:
Height determines the height of the widget as measured along the y-axis (height of the parent). You can use any of the following options:
Specifies the minimum width of the widget. This property is considered only when width property is not specified.
Specifies the maximum width of the widget. This property is considered only when width property is not specified.
Specifies the minimum height of the widget. This property is considered only when height property is not specified.
Specifies the maximum height of the widget. This property is considered only when height property is not specified.
The Center X property refers to the center of the widget as measured from the left boundary of the parent container.
Note: If the Layout Type is set as Horizontal, Center X is measured from the right edge of the left sibling widget.
The Center Y property refers to the center of the widget as measured from the top boundary of the parent container.
Note: If the Layout Type is set as Vertical, Center Y is measured from the bottom edge of the top sibling widget.
Specifies the stack order of the widgets. A widget with a higher Z Index is in front of the those with a lower Z Index.
Note: Modifying the zIndex does not modify the order of widgets inside a flex container. If widgets are overlapping with each other with the same zIndex, then the widget order decides the order of overlapping. Last added widget will be displayed on top.
Default:1 (Indicates the widgets is lowest bottom in the layer hierarchy.)
The following are the Look properties available for widgets placed on a VBox form.
Denotes the name of a widget. When a widget is added to a form, a unique name is assigned to the widget. You can rename a widget by typing a name in the ID box.
Note: You can also rename a widget from the Project Explorer by right-clicking a widget, and then clicking Rename.
Controls the visibility of a widget.
Defines whether a widget appears on a specific platform. By default, a widget is rendered for all the platforms. If you do not want to render a widget for a specific platform, click the Edit button against the Render field to open the Fork Platforms dialog box.
Clear the check box of the platforms for which the widget should not be rendered.
The Difference between Visible and Render
Allows you to define how the widget content is aligned. Following alignment options are available:
Note: Horizontal alignment of a widget is possible only when the Expand Horiz property is enabled.
Note: You can only view the behavior of the Expand Vert property during the Quick Preview and the Functional Preview.
You can define the content alignment of a widget specific to a platform by forking Content Align. For more information, see Fork a Widget Property.
Specifies how a widget is aligned with respect to its boundaries and its neighboring widgets (within the same container widget). Following alignments options are available:
The following table displays how a Button widget is aligned within its boundaries.
Left | Center | Right |
---|---|---|
For example, consider a Label widget and a Button widget are placed inside an HBox widget. The following table demonstrates how the Label widget is aligned with respect to the Button widget.
Left | Center | Right |
---|---|---|
Specifies whether widget is allowed to expand horizontally.
: Specifies whether widget is allowed to expand vertically.
Specifies the width of a widget.
Specifies the text displayed on a widget.
Specifies whether the text should be displayed on a widget.
You can choose to display the text specific to a platform by forking Display Text. For more information, see Fork a Widget Property.
Defines the space around a widget. You can use this option to assign the left, top, right, and bottom distance between the widget and the next element.
Property | Definition | Action |
---|---|---|
Top | Top margin | Move the slider to adjust the top margin of the widget. |
Right | Right margin |
Move the slider to adjust the right margin of the widget. |
Bottom | Bottom margin | Move the slider to adjust the bottom margin of the widget. |
Left | Left margin | Move the slider to adjust the left margin of the widget. |
Note:
The following image illustrates the Button widget forking:
Before Applying Margins | |
---|---|
Visualizer Canvas | Margin Properties |
After applying margins | |
Visualizer Canvas | Margin Properties |
You can provide margins specify to a platform by forking Margin. For more information, see Fork a Widget Property.
Note: When a Margin property is forked, you can apply margins in either Pixels or Percentage for native applications.
Defines the space between the content of the widget and the widget boundaries. You can use this option to assign the top, left, right, and bottom distance between the widget content and the widget's boundaries.
Important: Default padding for Android is not set, as the devices are manufactured with predefined padding values.
Property | Definition | Action |
---|---|---|
Top | Top padding | Move the slider to adjust the top padding of the widget. |
Bottom | Bottom padding | Move the slider to adjust the bottom padding of the widget. |
Left | Left padding | Move the slider to adjust the left padding of the widget. |
Right | Right padding |
Move the slider to adjust the right padding of the widget. |
You can provide padding specify to a platform by forking a widget's padding, as illustrated in the following table. For more information, see Fork a Widget Property.
Before Applying Padding | |
---|---|
Visualizer Canvas | Padding Properties |
After applying paddings | |
Visualizer Canvas | Margin Properties |
Note: When Padding property is forked, you can apply paddings in either Pixels or Percentage for native applications.
Copyright © 2013 Kony, Inc. All rights reserved. |