<code>FillLayout</code> is the simplest layout class. It lays out controls in a single row or column, forcing them to be the same size. <p> Initially, the controls will all be as tall as the tallest control, and as wide as the widest. <code>FillLayout</code> does not wrap, but you can specify margins and spacing. You might use it to lay out buttons in a task bar or tool bar, or to stack checkboxes in a <code>Group</code>. <code>FillLayout</code> can also be used when a <code>Composite</code> only has one child. For example, if a <code>Shell</code> has a single <code>Group</code> child, <code>FillLayout</code> will cause the <code>Group</code> to completely fill the <code>Shell</code> (if margins are 0). </p> <p> Example code: first a <code>FillLayout</code> is created and its type field is set, and then the layout is set into the <code>Composite</code>. Note that in a <code>FillLayout</code>, children are always the same size, and they fill all available space. <pre> FillLayout fillLayout = new FillLayout(); fillLayout.type = SWT.VERTICAL; shell.setLayout(fillLayout); </pre> </p>
Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
Contributors: IBM Corporation - initial API and implementation Port to the D programming language: Frank Benoit <benoit@tionex.de>