Return to package dfl. www.dprogramming.com

module dfl.control

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

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

BeforeResizeEventArgs
public class BeforeResizeEventArgs: EventArgs
{
}

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 final bool activateControl(Control ctrl); public Control activeControl();    [property getter] public void activeControl(Control ctrl);    [property setter] public final Form parentForm();    [property getter] public this();
}

Control
public class Control: DObject, IWindow
{
public static class ControlCollection {
public void add(Control ctrl); public bool contains(Control ctrl); public int indexOf(Control ctrl); public int length();    [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 bool allowDrop();    [property getter] public void allowDrop(bool byes);    [property setter] public Color backColor();    [property getter] public void backColor(Color c);    [property setter] public final int bottom();    [property getter] public final void bounds(Rect r);    [property setter] public final Rect bounds();    [property getter] public final void bringToFront(); public final void bringUpOne(); public final bool canFocus();    [property getter] public final bool canSelect();    [property getter] public final void capture(bool cyes);    [property setter] public final bool capture();    [property getter] public final Rect clientRectangle();    [property getter] public final Size clientSize();    [property getter] public final void clientSize(Size sz);    [property setter] 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 void defaultFont(ControlFont cf);    [property setter] public static Color defaultForeColor();    [property getter] protected Size defaultSize();    [property getter] public void defWndProc(inout Message msg); public final void delayInvoke(void function(Control, size_t[]) fn, size_t[] params ...); public final void delayInvoke(void function() fn); protected void destroyHandle(); public final void disable(); public Rect displayRectangle();    [property getter] public void dispose(); protected final void dispose(bool managedToo); public void dock(DockStyle ds);    [property setter] public DockStyle dock();    [property getter] public final void enable(); 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 Size getAutoScaleSize(); public final Size getAutoScaleSize(Font f); public final Control getChildAtPoint(Point pt); protected final bool getStyle(ControlStyles flag); protected final bool getTopLevel(); public final HWindow 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(bool andChildren); public final void invalidate(Region rgn, bool andChildren); public final void invalidate(Region rgn); public final void invalidate(Rect r, bool andChildren); public final void invalidate(); 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 void name(char[] txt);    [property setter] public final char[] name();    [property getter] 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 void performLayout(); public final void performLayout(Control affectedControl); 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] public 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] public final void select(); protected void select(bool directed, bool forward); 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(char[] text); public this(Control cparent, char[] text); public this(char[] text, int left, int top, int width, int height); public this(Control cparent, 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 void visible(bool byes);    [property setter] public final bool visible();    [property getter] public final int width();    [property getter] public final void width(int w);    [property setter] protected void wndProc(inout Message msg); public final int zIndex();    [property getter] public ~this(); public Event(Control,EventArgs) backColorChanged; public Event(Control,EventArgs) click; public Event(Control,EventArgs) contextMenuChanged; public Event(Control,ControlEventArgs) controlAdded; public Event(Control,ControlEventArgs) controlRemoved; public Event(Control,EventArgs) cursorChanged; public Event(Control,EventArgs) disposed; public Event(Control,EventArgs) dockChanged; public Event(Control,EventArgs) doubleClick; public Event(Control,DragEventArgs) dragDrop; public Event(Control,DragEventArgs) dragEnter; public Event(Control,EventArgs) dragLeave; public Event(Control,DragEventArgs) dragOver; public Event(Control,EventArgs) enabledChanged; public Event(Control,EventArgs) fontChanged; public Event(Control,EventArgs) foreColorChanged; public Event(Control,GiveFeedbackEventArgs) giveFeedback; public Event(Control,EventArgs) gotFocus; public Event(Control,EventArgs) handleCreated; public Event(Control,EventArgs) handleDestroyed; public Event(Control,HelpEventArgs) helpRequested; public Event(Control,KeyEventArgs) keyDown; public Event(Control,KeyEventArgs) keyPress; public Event(Control,KeyEventArgs) keyUp; public Event(Control,LayoutEventArgs) layout; public DWORD ldlgcode; public Event(Control,EventArgs) lostFocus; public Event(Control,MouseEventArgs) mouseDown; public Event(Control,MouseEventArgs) mouseEnter; public Event(Control,MouseEventArgs) mouseHover; public Event(Control,MouseEventArgs) mouseLeave; public Event(Control,MouseEventArgs) mouseMove; public Event(Control,MouseEventArgs) mouseUp; public Event(Control,MouseEventArgs) mouseWheel; public Event(Control,EventArgs) move; public Event(Control,PaintEventArgs) paint; public Event(Control,EventArgs) parentChanged; public Event(Control,QueryContinueDragEventArgs) queryContinueDrag; public Event(Control,EventArgs) resize; public Event(Control,EventArgs) rightToLeftChanged; public Event(Control,EventArgs) systemColorsChanged; public Event(Control,EventArgs) textChanged; public Event(Control,EventArgs) visibleChanged;

}

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

ControlFont
public enum ControlFont: ubyte
{
	COMPATIBLE,
	OLD,
	NATIVE,
}

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

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();
}

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

LayoutEventArgs
public class LayoutEventArgs: EventArgs
{
public final Control affectedControl();    [property getter] public this(Control affectedControl);
}

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 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 final void autoScale(bool byes);    [property setter] public final bool autoScale();    [property getter] public final Size autoScaleBaseSize();    [property getter] public final void autoScaleBaseSize(Size newSize);    [property setter] public override Rect displayRectangle();    [property getter] public final DockPaddingEdges dockPadding();    [property getter] protected final bool hScroll();    [property getter] protected final void hScroll(bool byes);    [property setter] protected override void onHandleCreated(EventArgs ea); protected override void onMouseWheel(MouseEventArgs ea); protected override void onResize(EventArgs ea); protected override void onVisibleChanged(EventArgs ea); public final Point scrollPosition();    [property getter] public final void scrollSize(Size sz);    [property setter] public final Size scrollSize();    [property getter] public this(); protected final void vScroll(bool byes);    [property setter] protected final bool vScroll();    [property getter] protected override void wndProc(inout Message m); public const Size DEFAULT_SCALE;

}

UICuesEventArgs
public class UICuesEventArgs: EventArgs
{
}

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