- ControlCollection
class ControlCollection
- onControlAdded
void onControlAdded(ControlEventArgs cea)
- onControlRemoved
void onControlRemoved(ControlEventArgs cea)
- handle
HWindow handle [@property getter]
- allowDrop
bool allowDrop [@property setter]
bool allowDrop [@property getter]
- onBackColorChanged
void onBackColorChanged(EventArgs ea)
- backColor
Color backColor [@property setter]
Color backColor [@property getter]
- bottom
int bottom [@property getter]
- bounds
Rect bounds [@property setter]
Rect bounds [@property getter]
- setBoundsCore
void setBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
- canFocus
bool canFocus [@property getter]
- canSelect
bool canSelect [@property getter]
- capture
bool capture [@property getter]
bool capture [@property setter]
- clientRectangle
Rect clientRectangle [@property getter]
- contains
bool contains(Control ctrl)
- clientSize
Size clientSize [@property getter]
Size clientSize [@property setter]
- setClientSizeCore
void setClientSizeCore(int width, int height)
- containsFocus
bool containsFocus [@property getter]
- onContextMenuChanged
void onContextMenuChanged(EventArgs ea)
- contextMenu
ContextMenu contextMenu [@property setter]
ContextMenu contextMenu [@property getter]
- controls
ControlCollection controls [@property getter]
- created
bool created [@property getter]
- onCursorChanged
void onCursorChanged(EventArgs ea)
- cursor
Cursor cursor [@property setter]
Cursor cursor [@property getter]
- defaultBackColor
Color defaultBackColor [@property getter]
- defaultForeColor
Color defaultForeColor [@property getter]
- defaultFont
ControlFont defaultFont [@property setter]
Font defaultFont [@property setter]
Font defaultFont [@property getter]
- displayRectangle
Rect displayRectangle [@property getter]
- onHasLayoutChanged
void onHasLayoutChanged(EventArgs ea)
- dock
DockStyle dock [@property getter]
DockStyle dock [@property setter]
- hasLayout
bool hasLayout [@property getter]
bool hasLayout [@property setter]
Get or set whether or not this control currently has its bounds managed. Fires onHasLayoutChanged as needed.
- enabled
bool enabled [@property setter]
- enabled
bool enabled [@property getter]
- enable
void enable()
- disable
void disable()
- focused
bool focused [@property getter]
- font
Font font [@property setter]
Font font [@property getter]
- onForeColorChanged
void onForeColorChanged(EventArgs ea)
- foreColor
Color foreColor [@property setter]
Color foreColor [@property getter]
- hasChildren
bool hasChildren [@property getter]
- height
int height [@property setter]
int height [@property getter]
- isHandleCreated
bool isHandleCreated [@property getter]
- left
int left [@property setter]
int left [@property getter]
- location
Point location [@property setter]
Point location [@property getter]
Property: get or set the X and Y location of the control.
- modifierKeys
Keys modifierKeys [@property getter]
Currently depressed modifier keys.
- mouseButtons
MouseButtons mouseButtons [@property getter]
Currently depressed mouse buttons.
- mousePosition
Point mousePosition [@property getter]
- name
Dstring name [@property setter]
Dstring name [@property getter]
Property: get or set the name of this control used in code.
- onParentChanged
void onParentChanged(EventArgs ea)
- findForm
Form findForm()
- parent
Control parent [@property setter]
Control parent [@property getter]
- region
Region region [@property setter]
Region region [@property getter]
- right
int right [@property getter]
- rightToLeft
RightToLeft rightToLeft [@property setter]
RightToLeft rightToLeft [@property getter]
- size
Size size [@property setter]
Size size [@property getter]
- zIndex
int zIndex [@property getter]
- tabStop
bool tabStop [@property setter]
bool tabStop [@property getter]
- tag
Object tag [@property setter]
Object tag [@property getter]
Property: get or set additional data tagged onto the control.
- text
Dstring text [@property setter]
Dstring text [@property getter]
- top
int top [@property setter]
int top [@property getter]
- topLevelControl
Control topLevelControl [@property getter]
Returns the topmost Control related to this control.
- visible
bool visible [@property setter]
bool visible [@property getter]
- width
int width [@property setter]
int width [@property getter]
- sendToBack
void sendToBack()
- bringToFront
void bringToFront()
- bringUpOne
void bringUpOne()
- sendBackOne
void sendBackOne()
- createControl
void createControl()
- createGraphics
Graphics createGraphics()
Returns a new Graphics object for this control, creating the control handle if necessary.
- onDragLeave
void onDragLeave(EventArgs ea)
- onDragEnter
void onDragEnter(DragEventArgs ea)
- onDragOver
void onDragOver(DragEventArgs ea)
- onDragDrop
void onDragDrop(DragEventArgs ea)
- onQueryContinueDrag
void onQueryContinueDrag(QueryContinueDragEventArgs ea)
- onGiveFeedback
void onGiveFeedback(GiveFeedbackEventArgs ea)
- doDragDrop
DragDropEffects doDragDrop(dfl.data.IDataObject dataObj, DragDropEffects allowedEffects)
DragDropEffects doDragDrop(Data obj, DragDropEffects allowedEffects)
Perform a drag/drop operation.
- focus
bool focus()
- fromChildHandle
Control fromChildHandle(HWND hwChild)
Returns the Control instance from one of its window handles, or null if none.
- fromHandle
Control fromHandle(HWND hw)
Returns the Control instance from its window handle, or null if none.
- getChildAtPoint
Control getChildAtPoint(Point pt)
- hide
void hide()
- show
void show()
- invalidate
void invalidate()
void invalidate(bool andChildren)
void invalidate(Rect r)
void invalidate(Rect r, bool andChildren)
void invalidate(Region rgn)
void invalidate(Region rgn, bool andChildren)
- redraw
void redraw()
- invokeRequired
bool invokeRequired [@property getter]
Returns true if the window does not belong to the current thread.
- invoke
Object invoke(Object delegate(Object[]) dg, Object[] args...)
void invoke(void delegate() dg)
Synchronously calls a delegate in this Control's thread. This function is thread safe and exceptions are propagated to the caller.
- delayInvoke
void delayInvoke(void function() fn)
void delayInvoke(void function(Control, size_t[]) fn, size_t[] params...)
Asynchronously calls a function after the window message queue processes its current messages.
It is generally not safe to pass references to the delayed function.
Exceptions are not propagated to the caller.
- isMnemonic
bool isMnemonic(dchar charCode, string text)
- pointToClient
Point pointToClient(Point pt)
Converts a screen Point to a client Point.
- pointToScreen
Point pointToScreen(Point pt)
Converts a client Point to a screen Point.
- rectangleToClient
Rect rectangleToClient(Rect r)
Converts a screen Rectangle to a client Rectangle.
- rectangleToScreen
Rect rectangleToScreen(Rect r)
Converts a client Rectangle to a screen Rectangle.
- preProcessMessage
bool preProcessMessage(ref Message msg)
- getAutoScaleSize
Size getAutoScaleSize(Font f)
Size getAutoScaleSize()
- refresh
void refresh()
- resetBackColor
void resetBackColor()
- resetCursor
void resetCursor()
- resetFont
void resetFont()
- resetForeColor
void resetForeColor()
- resetRightToLeft
void resetRightToLeft()
- resetText
void resetText()
- resumeLayout
void resumeLayout()
void resumeLayout(bool byes)
- suspendLayout
void suspendLayout()
- select
void select()
void select(bool directed, bool forward)
- setBounds
void setBounds(int x, int y, int width, int height)
void setBounds(int x, int y, int width, int height, BoundsSpecified specified)
- update
void update()
- supportsMouseTracking
bool supportsMouseTracking [@property getter]
- onPaint
void onPaint(PaintEventArgs pea)
- onMove
void onMove(EventArgs ea)
- onResize
void onResize(EventArgs ea)
- onMouseEnter
void onMouseEnter(MouseEventArgs mea)
- onMouseMove
void onMouseMove(MouseEventArgs mea)
- onKeyDown
void onKeyDown(KeyEventArgs kea)
- onKeyPress
void onKeyPress(KeyPressEventArgs kea)
- onKeyUp
void onKeyUp(KeyEventArgs kea)
- onMouseWheel
void onMouseWheel(MouseEventArgs mea)
- onMouseHover
void onMouseHover(MouseEventArgs mea)
- onMouseLeave
void onMouseLeave(MouseEventArgs mea)
- onMouseDown
void onMouseDown(MouseEventArgs mea)
- onMouseUp
void onMouseUp(MouseEventArgs mea)
- onClick
void onClick(EventArgs ea)
- onDoubleClick
void onDoubleClick(EventArgs ea)
- onGotFocus
void onGotFocus(EventArgs ea)
- onLostFocus
void onLostFocus(EventArgs ea)
- onEnabledChanged
void onEnabledChanged(EventArgs ea)
- onTextChanged
void onTextChanged(EventArgs ea)
- onFontChanged
void onFontChanged(EventArgs ea)
- onRightToLeftChanged
void onRightToLeftChanged(EventArgs ea)
- onVisibleChanged
void onVisibleChanged(EventArgs ea)
- onHelpRequested
void onHelpRequested(HelpEventArgs hea)
- onSystemColorsChanged
void onSystemColorsChanged(EventArgs ea)
- onHandleCreated
void onHandleCreated(EventArgs ea)
- onHandleDestroyed
void onHandleDestroyed(EventArgs ea)
- onPaintBackground
void onPaintBackground(PaintEventArgs pea)
- onReflectedMessage
void onReflectedMessage(ref Message m)
- wndProc
void wndProc(ref Message msg)
- defWndProc
void defWndProc(ref Message msg)
- backColorChanged
Event!(Control, EventArgs) backColorChanged;
- click
Event!(Control, EventArgs) click;
- contextMenuChanged
Event!(Control, EventArgs) contextMenuChanged;
- controlAdded
Event!(Control, ControlEventArgs) controlAdded;
- controlRemoved
Event!(Control, ControlEventArgs) controlRemoved;
- cursorChanged
Event!(Control, EventArgs) cursorChanged;
- disposed
Event!(Control, EventArgs) disposed;
- hasLayoutChanged
Event!(Control, EventArgs) hasLayoutChanged;
- doubleClick
Event!(Control, EventArgs) doubleClick;
- enabledChanged
Event!(Control, EventArgs) enabledChanged;
- fontChanged
Event!(Control, EventArgs) fontChanged;
- foreColorChanged
Event!(Control, EventArgs) foreColorChanged;
- gotFocus
Event!(Control, EventArgs) gotFocus;
- handleCreated
Event!(Control, EventArgs) handleCreated;
- handleDestroyed
Event!(Control, EventArgs) handleDestroyed;
- helpRequested
Event!(Control, HelpEventArgs) helpRequested;
- keyDown
Event!(Control, KeyEventArgs) keyDown;
- keyPress
Event!(Control, KeyPressEventArgs) keyPress;
- keyUp
Event!(Control, KeyEventArgs) keyUp;
- layout
Event!(Control, LayoutEventArgs) layout;
- lostFocus
Event!(Control, EventArgs) lostFocus;
- mouseDown
Event!(Control, MouseEventArgs) mouseDown;
- mouseEnter
Event!(Control, MouseEventArgs) mouseEnter;
- mouseHover
Event!(Control, MouseEventArgs) mouseHover;
- mouseLeave
Event!(Control, MouseEventArgs) mouseLeave;
- mouseMove
Event!(Control, MouseEventArgs) mouseMove;
- mouseUp
Event!(Control, MouseEventArgs) mouseUp;
- mouseWheel
Event!(Control, MouseEventArgs) mouseWheel;
- move
Event!(Control, EventArgs) move;
- paint
Event!(Control, PaintEventArgs) paint;
- parentChanged
Event!(Control, EventArgs) parentChanged;
- resize
Event!(Control, EventArgs) resize;
- rightToLeftChanged
Event!(Control, EventArgs) rightToLeftChanged;
- systemColorsChanged
Event!(Control, EventArgs) systemColorsChanged;
- textChanged
Event!(Control, EventArgs) textChanged;
- visibleChanged
Event!(Control, EventArgs) visibleChanged;
- dragDrop
Event!(Control, DragEventArgs) dragDrop;
- dragEnter
Event!(Control, DragEventArgs) dragEnter;
- dragLeave
Event!(Control, EventArgs) dragLeave;
- dragOver
Event!(Control, DragEventArgs) dragOver;
- giveFeedback
Event!(Control, GiveFeedbackEventArgs) giveFeedback;
- queryContinueDrag
Event!(Control, QueryContinueDragEventArgs) queryContinueDrag;
- dispose
void dispose()
void dispose(bool disposing)
- defaultSize
Size defaultSize [@property getter]
- resizeRedraw
bool resizeRedraw [@property setter]
bool resizeRedraw [@property getter]
- disableVisualStyle
void disableVisualStyle(bool byes = true)
- createControlsInstance
ControlCollection createControlsInstance()
- createParams
void createParams(ref CreateParams cp)
- createHandle
void createHandle()
- recreatingHandle
bool recreatingHandle [@property getter]
- recreateHandle
void recreateHandle()
- destroyHandle
void destroyHandle()
- onDisposed
void onDisposed(EventArgs ea)
- getStyle
bool getStyle(ControlStyles flag)
- setStyle
void setStyle(ControlStyles flag, bool value)
- updateStyles
void updateStyles()
- getTopLevel
bool getTopLevel()
- initLayout
void initLayout()
- onLayout
void onLayout(LayoutEventArgs lea)
- setVisibleCore
void setVisibleCore(bool byes)
- processKeyEventArgs
bool processKeyEventArgs(ref Message msg)
- processMnemonic
bool processMnemonic(dchar charCode)