Monday, July 23, 2007

layout components

ControlBar layout container:
You use the ControlBar container with a Panel or TitleWindow container to hold components that can be shared by the other children in the Panel or TitleWindow container.

Default size
The height is the default or explicit height of the tallest child, plus the top and bottom padding of the container.

The width is large enough to hold all of its children at the default or explicit width of the children, plus any horizontal gap between the children, plus the left and right padding of the container.

Default padding
10 pixels for the top, bottom, left, and right values.

----------
ApplicationControlBar layout container
You use the ApplicationControlBar container to hold components that provide access to application navigation elements and commands. An ApplicationControlBar container for an editor, for example, could include Button controls for setting the font weight, a ComboBox to select the font, and a MenuBar control to select the edit mode. The ApplicationControlBar is a sublcass of the ControlBar class; however, it has a different look and feel.

Typically, you place an ApplicationControlBar container at the top of the application,

Default size
The height is the default or explicit height of the tallest child, plus the top and bottom padding of the container.

In normal mode, the width is large enough to hold all of its children at the default or explicit width of the children, plus any horizontal gap between the children, plus the left and right padding of the container. In docked mode, the width equals the application width.

If the application is not wide enough to contain all the controls in the ApplicationControlBar container, the bar is clipped.

Default padding
5 pixels for the top value.

4 pixels for the bottom value.

8 pixels for the left and right values.

No comments: