GControl Class

Constructors

  Name Description
GControl Initializes new instance of the GControl class.

Methods

  Name Description
Refresh() Refreshes the control.
BringToFront() Brings the control to the front.
Dispose() Disposes the control.
Focus() Puts focus on the control.
SendToBack() Sends the control to the front.

Properties

  Name Description
bool canFocus Gets or sets a value indicating whether the control can receive focus.
bool canMove Gets or sets a value indicating whether this control can be moved.
System.Windows.Forms.ContextMenuStrip ContextMenuStrip Gets or sets the context menu.
bool Enabled Gets or sets a value indicating whether the control can respond to user interaction.
bool Focused Gets a value indicating whether the control has input focus.
string Name Gets or sets the name of the control.
System.Drawing.Point Location Gets the momentary position of the control on the screen.
System.Drawing.Size Size Gets or sets the size of the control.
System.Drawing.Size MaximumSize Gets or sets the maximum size the form can be resized to.
System.Drawing.Size MinimumSize Gets or sets the minimum size the form can be resized to.
object Tag Gets or sets the tag of the control.
CodeWonders.Sidebar.Gadget Parent Gets or sets the parental gadget.
System.Drawing.Rectangle Rect Gets the rectangle that represents the client area of the control.
bool Visible Gets or sets a value indicating whether the gadget is visible.

Events

  Name Description
System.EventHandler FocusChange Occurs when the control gets or loses focus.
System.EventHandler GotFocus Occurs when the control gets focus.
System.Windows.Forms.KeyEventHandler KeyDown Occurs when a key is pressed down while the control has focus.
System.Windows.Forms.KeyEventHandler KeyPress Occurs when a key is pressed while the control has focus.
System.Windows.Forms.KeyEventHandler KeyUp Occurs when a key is released while the control has focus.
System.EventHandler LocationChanged Occurs when the gadget or control has changed position.
System.EventHandler LostFocus Occurs when the control loses focus.
System.Windows.Forms.MouseEventHandler MouseDown Occurs when the mouse pointer is over the control and a mouse button is pressed.
System.Windows.Forms.MouseEventHandler MouseUp Occurs when the mouse pointer is over the control and a mouse button is released.
System.Windows.Forms.MouseEventHandler MouseEnter Occurs when the mouse pointer enters the control.
System.Windows.Forms.MouseEventHandler MouseLeave Occurs when the mouse pointer leaves the control.
System.Windows.Forms.MouseEventHandler MouseMove Occurs when the mouse pointer is moved over the control.
System.Windows.Forms.MouseEventHandler MouseWheel Occurs when the mouse wheel moves while the control has focus.
CodeWonders.Sidebar.Gadget.MouseClickedEventHandler OnDoubleclick Occurs when a double-click is performed on the gadget.
CodeWonders.Sidebar.Gadget.MouseClickedEventHandler OnLeftClick Occurs when a left-click is performed on the gadget.
CodeWonders.Sidebar.Gadget.MouseClickedEventHandler OnLeftClick Occurs when a left-click is performed on the gadget.
CodeWonders.Sidebar.Gadget.MouseClickedEventHandler OnRightClick Occurs when a right-click is performed on the gadget.
System.Windows.Forms.PaintEventHandler Paint Occurs when the gadget is redrawn.
System.EventHandler SizeChanged Occurs when the gadget's size changes.