About
A Form is a Dialog that is not modal and is used as the basis for DFL Applications.
Usage
Like other Controls Form uses the controls property to add Controls to it. If you wish to remove borders and the title bar commonly associated with a Form use a formBorderStyle of FormBorderStyle?.NONE.
Example
import dfl.all;
void main() {
auto form = new Form;
form.dockPadding.all = 5;
auto hello = new Label;
hello.text = "Hello World!";
form.controls.add(hello);
Application.run(form);
}
module dfl.form;
public class
Form:
ContainerControl
{
public final void addShortcut(Keys shortcut,void delegate(Object sender, FormShortcutEventArgs ea) pressed);
public final void addShortcut(Keys shortcut,void delegate(Object sender, EventArgs ea) pressed);
public final void close();
public final Icon icon;
[property setter]
public final Icon icon;
[property getter]
public final MainMenu menu;
[property getter]
public final MainMenu menu;
[property setter]
public final bool modal;
[property getter]
protected void onClosing(CancelEventArgs cea);
protected void onLoad(EventArgs ea);
protected void onPaint(PaintEventArgs ea);
public final double opacity;
[property getter]
public final double opacity;
[property setter]
public final Form owner;
[property getter]
public final Form owner;
[property setter]
protected void setBoundsCore(int x,int y,int width,int height,BoundsSpecified specified);
public final DialogResult showDialog(IWindow iwsowner);
public final bool topMost;
[property getter]
public final bool topMost;
[property setter]
public final FormWindowState windowState;
[property getter]
public final FormWindowState windowState;
[property setter]
protected void wndProc(ref Message msg);
Inherited members
activateControl
activeControl
autoScale
autoScaleBaseSize
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
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 final Keys shortcut;
[property getter]
Inherited members
empty
}