Adobe 65007312 Programming Guide - Page 108
Relative placement of sibling nodes, Placement within the parent, Layout property, Datatype
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 108 highlights
CHAPTER 5: Creating a User Interface for Your Plug-in Determining layout 108 Relative placement of sibling nodes These properties determine how child nodes are placed relative to one another. They apply only to containers. A margin is the interior margin of a container, the distance between the edge of the container and its children; spacing is the distance between children. All numeric values are in pixels. Layout property place margin margin_horizontal margin_vertical margin_left, margin_right margin_top, margin_bottom spacing Datatype string number number number number number number Description The placement style. One of: vertical (default): Children are placed in a column top down. horizontal: Children are placed in a row left to right. overlapping: Children are placed on top of one another. Space around children within the containing node. Overrides the margin value for both the right and left sides. Overrides the margin value for both the top and bottom. Overrides the margin value for the left and right sides, respectively. Overrides the margin value for the top and bottom, respectively. The amount of space placed between each child. Ignored if place is overlapping. Placement within the parent These can be set on any view or control. These properties determine how child nodes are placed and sized within the parent node. All numeric values are percentages, between 0 and 1. Layout property fill_horizontal fill_vertical Datatype number [0..1] Description The amount of free space that the node is sized to fill in the given direction. These determine how a node is sized relative to its siblings. No node is made smaller than its minimum size. Each child's fill size is first treated as a proportion of the total space desired; that is, 0.25 makes the node 25% of the parent's size. If any of the child node fill needs cannot be met, they are given a percentage of the extra space in the proportion to how much they specified. For instance, if three nodes specify 0.2, 0.2, and 0.4, and there is not enough extra space, the nodes get 25%, 25% and 50% of the extra space that is available.