About
TabControl? is a way to organize pages of information. It puts different controls into tabs to be viewed separately.
Usage
TabControls? use TabPages? to contain the different pages that hold controls. These pages have a text label that is displayed to differentiate them. In order to style the TabPages?' display use the appearance property of the TabControl? Control that they exist in. All tabs are styled the same way.
Example
import dfl.all;
void main() {
auto form = new Form;
form.dockPadding.all = 5;
auto tabs = new TabControl;
tabs.appearance = TabAppearance.FLAT_BUTTONS;
auto currentPage = new TabPage;
currentPage.text = "First Tab";
auto currentLabel = new Label;
currentLabel.text = "First Page's Label";
currentLabel.dock = DockStyle.FILL;
currentPage.controls.add(currentLabel);
tabs.tabPages.add(currentPage);
currentPage = new TabPage;
currentPage.text = "Second Tab";
currentLabel = new Label;
currentLabel.text = "Second Page's Label";
currentLabel.dock = DockStyle.FILL;
currentPage.controls.add(currentLabel);
tabs.tabPages.add(currentPage);
currentPage = new TabPage;
currentPage.text = "Third Tab";
currentLabel = new Label;
currentLabel.text = "Third Page's Label";
currentLabel.dock = DockStyle.FILL;
currentPage.controls.add(currentLabel);
tabs.tabPages.add(currentPage);
tabs.dock = DockStyle.FILL;
form.controls.add(tabs);
Application.run(form);
}
module dfl.tabcontrol;
{
public final TabAlignment alignment;
[property setter]
public final TabAlignment alignment;
[property getter]
public final TabAppearance appearance;
[property setter]
public final TabAppearance appearance;
[property getter]
public final bool multiline;
[property setter]
public final bool multiline;
[property getter]
protected void onLayout(LayoutEventArgs ea);
public final Point padding;
[property setter]
public final Point padding;
[property getter]
public final int rowCount;
[property getter]
public final int tabCount;
[property getter]
public final TabPageCollection tabPages;
[property getter]
Inherited members
backColor
backColorChanged
bottom
bounds
bringToFront
bringUpOne
canFocus
canSelect
capture
click
clientRectangle
clientSize
contains
containsFocus
contextMenu
contextMenuChanged
controlAdded
ControlCollection
controlRemoved
controls
createControl
createControlsInstance
created
createGraphics
createHandle
createParams
cursor
cursorChanged
defaultBackColor
defaultFont
defaultForeColor
defaultSize
defWndProc
delayInvoke
destroyHandle
disable
disableVisualStyle
displayRectangle
dispose
disposed
dock
doubleClick
drawMode
enable
enabled
enabledChanged
findForm
focus
focused
font
fontChanged
foreColor
foreColorChanged
fromChildHandle
fromHandle
getAutoScaleSize
getChildAtPoint
getStyle
getTabRect
getTopLevel
gotFocus
handle
handleCreated
handleDestroyed
hasChildren
hasLayout
hasLayoutChanged
height
helpRequested
hide
initLayout
invalidate
invoke
invokeRequired
isHandleCreated
isMnemonic
keyDown
keyPress
keyUp
layout
left
location
lostFocus
modifierKeys
mouseButtons
mouseDown
mouseEnter
mouseHover
mouseLeave
mouseMove
mousePosition
mouseUp
mouseWheel
move
name
onBackColorChanged
onClick
onContextMenuChanged
onControlAdded
onControlRemoved
onCursorChanged
onDisposed
onDoubleClick
onEnabledChanged
onFontChanged
onForeColorChanged
onGotFocus
onHandleCreated
onHandleDestroyed
onHasLayoutChanged
onHelpRequested
onKeyDown
onKeyPress
onKeyUp
onLayout
onLostFocus
onMouseDown
onMouseEnter
onMouseHover
onMouseLeave
onMouseMove
onMouseUp
onMouseWheel
onMove
onPaint
onPaintBackground
onParentChanged
onReflectedMessage
onResize
onRightToLeftChanged
onSelectedIndexChanged
onSelectedIndexChanging
onSystemColorsChanged
onTextChanged
onVisibleChanged
opCmp
opEquals
paint
parent
parentChanged
performLayout
pointToClient
pointToScreen
preProcessMessage
prevWndProc
processKeyEventArgs
processMnemonic
recreateHandle
recreatingHandle
rectangleToClient
rectangleToScreen
redraw
refresh
region
resetBackColor
resetCursor
resetFont
resetForeColor
resetRightToLeft
resetText
resize
resizeRedraw
resumeLayout
right
rightToLeft
rightToLeftChanged
select
selectedIndexChanged
selectedIndexChanging
selectNextControl
sendBackOne
sendToBack
setBounds
setBoundsCore
setClientSizeCore
setStyle
setVisibleCore
show
size
supportsMouseTracking
suspendLayout
systemColorsChanged
tabStop
tag
text
textChanged
top
topLevelControl
toString
update
updateStyles
visible
visibleChanged
width
wndProc
zIndex
}
{
public void add(Control ctrl);
public int length;
[property getter]
public int opApply(int delegate(ref Control) dg);
public int opIndex;
[property getter]
protected final Control owner;
[property getter]
public void remove(Control ctrl);
}
{
public final TabDrawMode drawMode;
[property setter]
public final TabDrawMode drawMode;
[property getter]
protected void wndProc(ref Message m);
Inherited members
backColor
backColorChanged
bottom
bounds
bringToFront
bringUpOne
canFocus
canSelect
capture
click
clientRectangle
clientSize
contains
containsFocus
contextMenu
contextMenuChanged
controlAdded
ControlCollection
controlRemoved
controls
createControl
createControlsInstance
created
createGraphics
createHandle
createParams
cursor
cursorChanged
defaultBackColor
defaultFont
defaultForeColor
defaultSize
defWndProc
delayInvoke
destroyHandle
disable
disableVisualStyle
displayRectangle
dispose
disposed
dock
doubleClick
enable
enabled
enabledChanged
findForm
focus
focused
font
fontChanged
foreColor
foreColorChanged
fromChildHandle
fromHandle
getAutoScaleSize
getChildAtPoint
getStyle
getTopLevel
gotFocus
handle
handleCreated
handleDestroyed
hasChildren
hasLayout
hasLayoutChanged
height
helpRequested
hide
initLayout
invalidate
invoke
invokeRequired
isHandleCreated
isMnemonic
keyDown
keyPress
keyUp
layout
left
location
lostFocus
modifierKeys
mouseButtons
mouseDown
mouseEnter
mouseHover
mouseLeave
mouseMove
mousePosition
mouseUp
mouseWheel
move
name
onBackColorChanged
onClick
onContextMenuChanged
onControlAdded
onControlRemoved
onCursorChanged
onDisposed
onDoubleClick
onEnabledChanged
onFontChanged
onForeColorChanged
onGotFocus
onHandleCreated
onHandleDestroyed
onHasLayoutChanged
onHelpRequested
onKeyDown
onKeyPress
onKeyUp
onLayout
onLostFocus
onMouseDown
onMouseEnter
onMouseHover
onMouseLeave
onMouseMove
onMouseUp
onMouseWheel
onMove
onPaint
onPaintBackground
onParentChanged
onReflectedMessage
onResize
onRightToLeftChanged
onSystemColorsChanged
onTextChanged
onVisibleChanged
opCmp
opEquals
paint
parent
parentChanged
performLayout
pointToClient
pointToScreen
preProcessMessage
processKeyEventArgs
processMnemonic
recreateHandle
recreatingHandle
rectangleToClient
rectangleToScreen
redraw
refresh
region
resetBackColor
resetCursor
resetFont
resetForeColor
resetRightToLeft
resetText
resize
resizeRedraw
resumeLayout
right
rightToLeft
rightToLeftChanged
select
selectNextControl
sendBackOne
sendToBack
setBounds
setBoundsCore
setClientSizeCore
setStyle
setVisibleCore
show
size
supportsMouseTracking
suspendLayout
systemColorsChanged
tabStop
tag
text
textChanged
top
topLevelControl
toString
update
updateStyles
visible
visibleChanged
width
wndProc
zIndex
}
{
public void add(Control ctrl);
public int length;
[property getter]
public int opApply(int delegate(ref Control) dg);
public int opIndex;
[property getter]
protected final Control owner;
[property getter]
public void remove(Control ctrl);
}
{
public int opCmp(Object o);
public int opCmp(char[] val);
protected void setBoundsCore(int x,int y,int width,int height,BoundsSpecified specified);
public char[] text;
[property setter]
Inherited members
activateControl
activeControl
autoScale
autoScaleBaseSize
backColor
backColorChanged
borderStyle
bottom
bounds
bringToFront
bringUpOne
canFocus
canSelect
capture
click
clientRectangle
clientSize
contains
containsFocus
contextMenu
contextMenuChanged
controlAdded
ControlCollection
controlRemoved
controls
createControl
createControlsInstance
created
createGraphics
createHandle
createParams
cursor
cursorChanged
DEFAULT_SCALE
defaultBackColor
defaultFont
defaultForeColor
defaultSize
defWndProc
delayInvoke
destroyHandle
disable
disableVisualStyle
displayRectangle
dispose
disposed
dock
dockPadding
DockPaddingEdges
doubleClick
enable
enabled
enabledChanged
findForm
focus
focused
font
fontChanged
foreColor
foreColorChanged
fromChildHandle
fromHandle
getAutoScaleSize
getChildAtPoint
getStyle
getTopLevel
gotFocus
handle
handleCreated
handleDestroyed
hasChildren
hasLayout
hasLayoutChanged
height
helpRequested
hide
hScroll
initLayout
invalidate
invoke
invokeRequired
isHandleCreated
isMnemonic
keyDown
keyPress
keyUp
layout
left
location
lostFocus
modifierKeys
mouseButtons
mouseDown
mouseEnter
mouseHover
mouseLeave
mouseMove
mousePosition
mouseUp
mouseWheel
move
name
onBackColorChanged
onClick
onContextMenuChanged
onControlAdded
onControlRemoved
onCursorChanged
onDisposed
onDoubleClick
onEnabledChanged
onFontChanged
onForeColorChanged
onGotFocus
onHandleCreated
onHandleDestroyed
onHasLayoutChanged
onHelpRequested
onKeyDown
onKeyPress
onKeyUp
onLayout
onLostFocus
onMouseDown
onMouseEnter
onMouseHover
onMouseLeave
onMouseMove
onMouseUp
onMouseWheel
onMove
onPaint
onPaintBackground
onParentChanged
onReflectedMessage
onResize
onRightToLeftChanged
onSystemColorsChanged
onTextChanged
onVisibleChanged
opCmp
opEquals
paint
parent
parentChanged
parentForm
performLayout
pointToClient
pointToScreen
preProcessMessage
processKeyEventArgs
processMnemonic
recreateHandle
recreatingHandle
rectangleToClient
rectangleToScreen
redraw
refresh
region
resetBackColor
resetCursor
resetFont
resetForeColor
resetRightToLeft
resetText
resize
resizeRedraw
resumeLayout
right
rightToLeft
rightToLeftChanged
scrollPosition
scrollSize
select
selectNextControl
sendBackOne
sendToBack
setBounds
setBoundsCore
setClientSizeCore
setStyle
setVisibleCore
show
size
supportsMouseTracking
suspendLayout
systemColorsChanged
tabStop
tag
text
textChanged
top
topLevelControl
toString
update
updateStyles
visible
visibleChanged
vScroll
width
wndProc
zIndex
}
{
public void add(Control ctrl);
public int length;
[property getter]
public int opApply(int delegate(ref Control) dg);
public int opIndex;
[property getter]
protected final Control owner;
[property getter]
public void remove(Control ctrl);
}
{
public final int all;
[property setter]
public final int all;
[property getter]
public final int bottom;
[property getter]
public final int bottom;
[property setter]
public final int left;
[property getter]
public final int left;
[property setter]
public final int right;
[property setter]
public final int right;
[property getter]
public final int top;
[property getter]
public final int top;
[property setter]
}
{
public void add(char[] s);
public void insert(int index,char[] s);
}