Return to package dfl. www.dprogramming.com

module dfl.control

classes
CancelEventArgs ContainerControl Control ControlEventArgs DragEventArgs HelpEventArgs InvalidateEventArgs KeyEventArgs LayoutEventArgs MouseEventArgs PaintEventArgs ScrollableControl UICuesEventArgs WindowsHungDflException
interfaces
IContainerControl
enums
AnchorStyles BoundsSpecified ControlStyles DockStyle DragAction DragDropEffects UICues
structs
CreateParams

AnchorStyles
public enum AnchorStyles: ubyte
{
	NONE,
	TOP,
	BOTTOM,
	LEFT,
	RIGHT,
}

BoundsSpecified
public enum BoundsSpecified: ubyte
{
	NONE,
	X,
	Y,
	LOCATION,
	WIDTH,
	HEIGHT,
	SIZE,
	ALL,
}

CancelEventArgs
public class CancelEventArgs: EventArgs
{
public final bool cancel();    [property getter] public final void cancel(bool byes);    [property setter] public this(); public this(bool cancel);
}

ContainerControl
public class ContainerControl: ScrollableControl, IContainerControl
{
public Control activeControl();    [property getter] public final Form parentForm();    [property getter] protected bool processTabKey(bool forward); public this();
}

Control
public class Control: IWin32Window
{
public static class ControlCollection {
public void add(Control ctrl); public bool contains(Control ctrl); public int count();    [property getter] public int indexOf(Control ctrl); public final bool isReadOnly();    [property getter] public bool isSynchronized();    [property getter] public int opApply(int delegate(inout Control) dg); public Control opIndex(int i);    [property getter] protected final Control owner();    [property getter] public void remove(Control ctrl); public void removeAt(int i); public this(Control owner);
}

public void allowDrop(bool byes);    [property setter] public bool allowDrop();    [property getter] public void backColor(Color c);    [property setter] public Color backColor();    [property getter] public final int bottom();    [property getter] public final Rect bounds();    [property getter] public final void bounds(Rect r);    [property setter] public final void bringToFront(); public final void bringUpOne(); public final bool canFocus();    [property getter] public final bool canSelect();    [property getter] public final bool capture();    [property getter] public final void capture(bool cyes);    [property setter] public final Rect clientRectangle();    [property getter] public final void clientSize(Size sz);    [property setter] public final Size clientSize();    [property getter] public final bool contains(Control ctrl); public final bool containsFocus();    [property getter] public void contextMenu(ContextMenu menu);    [property setter] public ContextMenu contextMenu();    [property getter] public final ControlCollection controls();    [property getter] public final void createControl(); protected ControlCollection createControlsInstance(); public final bool created();    [property getter] public final Graphics createGraphics(); protected void createHandle(); protected void createParams(inout CreateParams cp); public Cursor cursor();    [property getter] public void cursor(Cursor cur);    [property setter] public static Color defaultBackColor();    [property getter] public static Font defaultFont();    [property getter] public static Color defaultForeColor();    [property getter] protected Size defaultSize();    [property getter] public void defWndProc(inout Message msg); public final void delayInvoke(void function() fn); protected void destroyHandle(); public Rect displayRectangle();    [property getter] public void dispose(); protected final void dispose(bool managedToo); public DockStyle dock();    [property getter] public void dock(DockStyle ds);    [property setter] public final void enabled(bool byes);    [property setter] public final bool enabled();    [property getter] public final Form findForm(); public final bool focus(); public bool focused();    [property getter] public void font(Font f);    [property setter] public Font font();    [property getter] public void foreColor(Color c);    [property setter] public Color foreColor();    [property getter] public static Control fromChildHandle(HWND hwChild); public static Control fromHandle(HWND hw); public final Control getChildAtPoint(Point pt); protected final bool getStyle(ControlStyles flag); protected final bool getTopLevel(); public final HWND handle();    [property getter] public final bool hasChildren();    [property getter] public final int height();    [property getter] public final void height(int h);    [property setter] public final void hide(); protected void initLayout(); public final void invalidate(Region rgn); public final void invalidate(Rect r, bool andChildren); public final void invalidate(Region rgn, bool andChildren); public final void invalidate(); public final void invalidate(bool andChildren); public final void invalidate(Rect r); public final Object invoke(Object delegate(Object[]) dg, Object[] args); public bool invokeRequired();    [property getter] public final bool isHandleCreated(); public static bool isMnemonic(dchar charCode, char[] text); public final void left(int l);    [property setter] public final int left();    [property getter] public final void location(Point pt);    [property setter] public final Point location();    [property getter] public static Keys modifierKeys();    [property getter] public static MouseButtons mouseButtons();    [property getter] public static Point mousePosition();    [property getter] public final char[] name();    [property getter] public final void name(char[] txt);    [property setter] protected void onBackColorChanged(EventArgs ea); protected void onClick(EventArgs ea); protected void onContextMenuChanged(EventArgs ea); protected void onCursorChanged(EventArgs ea); protected void onDisposed(EventArgs ea); protected void onDockChanged(EventArgs ea); protected void onDoubleClick(EventArgs ea); protected void onEnabledChanged(EventArgs ea); protected void onFontChanged(EventArgs ea); protected void onForeColorChanged(EventArgs ea); protected void onGotFocus(EventArgs ea); protected void onHandleCreated(EventArgs ea); protected void onHandleDestroyed(EventArgs ea); protected void onHelpRequested(HelpEventArgs hea); protected void onKeyDown(KeyEventArgs kea); protected void onKeyPress(KeyEventArgs kea); protected void onKeyUp(KeyEventArgs kea); protected void onLayout(LayoutEventArgs lea); protected void onLostFocus(EventArgs ea); protected void onMouseDown(MouseEventArgs mea); protected void onMouseEnter(MouseEventArgs mea); protected void onMouseHover(MouseEventArgs mea); protected void onMouseLeave(MouseEventArgs mea); protected void onMouseMove(MouseEventArgs mea); protected void onMouseUp(MouseEventArgs mea); protected void onMouseWheel(MouseEventArgs mea); protected void onMove(EventArgs ea); protected void onPaint(PaintEventArgs pea); protected void onPaintBackground(PaintEventArgs pea); protected void onParentChanged(EventArgs ea); protected void onReflectedMessage(inout Message m); protected void onResize(EventArgs ea); protected void onRightToLeftChanged(EventArgs ea); protected void onSystemColorsChanged(EventArgs ea); protected void onTextChanged(EventArgs ea); protected void onVisibleChanged(EventArgs ea); public override int opEquals(Object o); public int opEquals(Control ctrl); public final void parent(Control c);    [property setter] public final Control parent();    [property getter] public final Point pointToClient(Point pt); public final Point pointToScreen(Point pt); public bool preProcessMessage(inout Message msg); public final Rect rectangleToClient(Rect r); public final Rect rectangleToScreen(Rect r); public void refresh(); public final Region region();    [property getter] public final void region(Region rgn);    [property setter] public void resetBackColor(); public void resetCursor(); public void resetFont(); public void resetForeColor(); public void resetRightToLeft(); public void resetText(); protected final bool resizeRedraw();    [property getter] protected final void resizeRedraw(bool byes);    [property setter] public final void resumeLayout(); public final void resumeLayout(bool byes); public final int right();    [property getter] public void rightToLeft(RightToLeft val);    [property setter] public RightToLeft rightToLeft();    [property getter] protected void select(bool directed, bool forward); public final void select(); public final void sendBackOne(); public final void sendToBack(); public final void setBounds(int x, int y, int width, int height); public final void setBounds(int x, int y, int width, int height, BoundsSpecified specified); protected void setBoundsCore(int x, int y, int width, int height, BoundsSpecified specified); protected void setClientSizeCore(int width, int height); protected final void setStyle(ControlStyles flag, bool value); protected void setVisibleCore(bool byes); public final void show(); public final Size size();    [property getter] public final void size(Size sz);    [property setter] public static bool supportsMouseTracking();    [property getter] public final void suspendLayout(); public final void tabStop(bool byes);    [property setter] public final bool tabStop();    [property getter] public final Object tag();    [property getter] public final void tag(Object o);    [property setter] public char[] text();    [property getter] public void text(char[] txt);    [property setter] public this(); public this(Control cparent, char[] text, int left, int top, int width, int height); public this(char[] text); public this(Control cparent, char[] text); public this(char[] text, int left, int top, int width, int height); public final int top();    [property getter] public final void top(int t);    [property setter] public final Control topLevelControl();    [property getter] public override char[] toString(); public final void update(); protected final void updateStyles(); public final bool visible();    [property getter] public final void visible(bool byes);    [property setter] public final void width(int w);    [property setter] public final int width();    [property getter] protected void wndProc(inout Message msg); public final int zIndex();    [property getter] public ~this(); public EventHandler backColorChanged; public UICuesEventHandler changeUICues; public EventHandler click; public EventHandler contextMenuChanged; public ControlEventHandler controlAdded; public ControlEventHandler controlRemoved; public EventHandler cursorChanged; public EventHandler disposed; public EventHandler dockChanged; public EventHandler doubleClick; public DragEventHandler dragDrop; public DragEventHandler dragEnter; public EventHandler dragLeave; public DragEventHandler dragOver; public EventHandler enabledChanged; public EventHandler fontChanged; public EventHandler foreColorChanged; public GiveFeedbackEventHandler giveFeedback; public EventHandler gotFocus; public EventHandler handleCreated; public EventHandler handleDestroyed; public HelpEventHandler helpRequested; public KeyEventHandler keyDown; public KeyEventHandler keyPress; public KeyEventHandler keyUp; public LayoutEventHandler layout; public DWORD ldlgcode; public EventHandler lostFocus; public MouseEventHandler mouseDown; public MouseEventHandler mouseEnter; public MouseEventHandler mouseHover; public MouseEventHandler mouseLeave; public MouseEventHandler mouseMove; public MouseEventHandler mouseUp; public MouseEventHandler mouseWheel; public EventHandler move; public PaintEventHandler paint; public EventHandler parentChanged; public QueryContinueDragEventHandler queryContinueDrag; public EventHandler resize; public EventHandler rightToLeftChanged; public EventHandler systemColorsChanged; public EventHandler textChanged; public EventHandler visibleChanged;

}

ControlEventArgs
public class ControlEventArgs: EventArgs
{
public final Control control();    [property getter] public this(Control ctrl);
}

ControlStyles
public enum ControlStyles: uint
{
	NONE,
	CONTAINER_CONTROL,
	USER_PAINT,
	OPAQUE,
	RESIZE_REDRAW,
	FIXED_WIDTH,
	FIXED_HEIGHT,
	STANDARD_CLICK,
	SELECTABLE,
	USER_MOUSE,
	SUPPORTS_TRANSPARENT_BACK_COLOR,
	STANDARD_DOUBLE_CLICK,
	ALL_PAINTING_IN_WM_PAINT,
	CACHE_TEXT,
	ENABLE_NOTIFY_MESSAGE,
	DOUBLE_BUFFER,
}

CreateParams
public struct CreateParams
{
public char[] className; public char[] caption; public void* param; public HWND parent; public HMENU menu; public HINSTANCE inst; public int x; public int y; public int width; public int height; public DWORD classStyle; public DWORD exStyle; public DWORD style;
}

DockStyle
public enum DockStyle: ubyte
{
	NONE,
	BOTTOM,
	FILL,
	LEFT,
	RIGHT,
	TOP,
}

DragAction
public enum DragAction: HRESULT
{
	CONTINUE,
	CANCEL,
	DROP,
}

DragDropEffects
public enum DragDropEffects: DWORD
{
	NONE,
	COPY,
	MOVE,
	LINK,
	SCROLL,
	ALL,
}

DragEventArgs
public class DragEventArgs: EventArgs
{
public class GiveFeedbackEventArgs: EventArgs {
public final DragDropEffects effect();    [property getter] public this(DragDropEffects effect, bool useDefaultCursors); public final bool useDefaultCursors();    [property getter] public final void useDefaultCursors(bool byes);    [property setter]
}

public class QueryContinueDragEventArgs: EventArgs {

public final DragAction action();    [property getter] public final void action(DragAction newAction);    [property setter] public final bool escapePressed();    [property getter] public final int keyState();    [property getter] public this(int keyState, bool escapePressed, DragAction action);
}

public final DragDropEffects allowedEffect();    [property getter] public final dfl.data.IDataObject data();    [property getter] public final void effect(DragDropEffects newEffect);    [property setter] public final DragDropEffects effect();    [property getter] public final int keyState();    [property getter] public this(dfl.data.IDataObject dataObj, int keyState, int x, int y, DragDropEffects allowedEffect, DragDropEffects effect); public final int x();    [property getter] public final int y();    [property getter]

}

HelpEventArgs
public class HelpEventArgs: EventArgs
{
public final bool handled();    [property getter] public final void handled(bool byes);    [property setter] public final Point mousePos();    [property getter] public this(Point mousePos);
}

IContainerControl
public interface IContainerControl
{
public Control activeControl();    [property getter]
}

InvalidateEventArgs
public class InvalidateEventArgs: EventArgs
{
public final Rect invalidRect();    [property getter] public this(Rect invalidRect);
}

KeyEventArgs
public class KeyEventArgs: EventArgs
{
public final bool alt();    [property getter] public final bool control();    [property getter] public final void handled(bool byes);    [property setter] public final bool handled();    [property getter] public final Keys keyCode();    [property getter] public final Keys keyData();    [property getter] public final int keyValue();    [property getter] public final Keys modifiers();    [property getter] public final bool shift();    [property getter] public this(Keys keys);
}

LayoutEventArgs
public class LayoutEventArgs: EventArgs
{
public final Control affectedControl(); public this(Control affectedControl);
}

MouseEventArgs
public class MouseEventArgs: EventArgs
{
public final MouseButtons button();    [property getter] public final int clicks();    [property getter] public final int delta();    [property getter] public this(MouseButtons button, int clicks, int x, int y, int delta); public final int x();    [property getter] public final int y();    [property getter]
}

PaintEventArgs
public class PaintEventArgs: EventArgs
{
public final Rect clipRectangle();    [property getter] public final Graphics graphics();    [property getter] public this(Graphics graphics, Rect clipRect);
}

ScrollableControl
public class ScrollableControl: Control
{
public static class DockPaddingEdges {
public final void all(int x);    [property setter] public final int all();    [property getter] public final int bottom();    [property getter] public final void bottom(int x);    [property setter] public final void left(int x);    [property setter] public final int left();    [property getter] public final int right();    [property getter] public final void right(int x);    [property setter] public final int top();    [property getter] public final void top(int x);    [property setter]
}

public bool autoScroll();    [property getter] public void autoScroll(bool byes);    [property setter] public final void autoScrollMargin(Size sz);    [property setter] public final Size autoScrollMargin();    [property getter] public final void autoScrollMinSize(Size sz);    [property setter] public final Size autoScrollMinSize();    [property getter] public final void autoScrollPosition(Point pt);    [property setter] public final Point autoScrollPosition();    [property getter] public final override Rect displayRectangle();    [property getter] public final DockPaddingEdges dockPadding();    [property getter] protected final void hScroll(bool byes);    [property setter] protected final bool hScroll();    [property getter] protected override void onMouseWheel(MouseEventArgs mea); protected override void onVisibleChanged(EventArgs ea); public final void setAutoScrollMargin(int x, int y); public this(); protected final bool vScroll();    [property getter] protected final void vScroll(bool byes);    [property setter] protected override void wndProc(inout Message msg);

}

UICues
public enum UICues: uint
{
	NONE,
	SHOW_FOCUS,
	SHOW_KEYBOARD,
	SHOWN,
	CHANGE_FOCUS,
	CHANGE_KEYBOARD,
	CHANGED,
}

UICuesEventArgs
public class UICuesEventArgs: EventArgs
{
public final UICues changed();    [property getter] public final bool changeFocus(); public final bool changeKeyboard(); public final bool showFocus(); public final bool showKeyboard(); public this(UICues uic);
}

WindowsHungDflException
public class WindowsHungDflException: DflException
{
public this(char[] msg);
}