BiBox
This layout component places its children from left to right for the horizontal box and from top to bottom for the vertical box. This is a fairly advanced layout component that takes preferred, minimum and maximum size of the children into account. It also takes margins into account and it uses margin collapsing so that two adjacent children share the larger margin.
This class extends
BiComponent
and therefore all methods and fields available for
BiComponent
are also available for
BiBox
.
Constructor
new
BiBox
(
[
sOrient
[
,sAlign
[
,sPack
]
]
]
)
Parameters
| Name | Type | Optional | Default | Descripton |
sOrient |
String |
![]() |
Optional orientation of the layout | |
sAlign |
String |
![]() |
Optional alignment of the children | |
sPack |
String |
![]() |
Optional pack value |
Properties
Methods
None.
Events
None.
Static Methods
| Name | Description |
getFlex |
Returns the dock value for the source |
setFlex |
Sets the attached flex property for the source. A flex value of 0 means that the size is determined by the preferred size and no flexing occurs. |
Static Fields
None.
Remarks
Static Method Details
getFlex
Returns the dock value for the source
Syntax
BiBox
.
getFlex
(
oSource
)
Parameters
| Name | Type | Optional | Default | Descripton |
oSource |
|
The component to get the dock value for |
Return Type
String
setFlex
Sets the attached flex property for the source. A flex value of 0 means that the size is determined by the preferred size and no flexing occurs.
Syntax
BiBox . setFlex ( oSource,nFlex )
Parameters
| Name | Type | Optional | Default | Descripton |
oSource |
|
The component to set the dock value for | ||
nFlex |
Number |
The flex value is used to tell how much of the remaining space the component should use. |
Return Type
void
