Gadget Class

Constructors

  Name Description
Gadget Initializes new instance of the Gadget class.
Gadget(CodeWonders.Sidebar.SettingPanel) Initializes new instance of the Gadget class with a settings panel.

Methods

  Name Description
Refresh() Refreshes the display of the control.
SetOpacity(byte) Sets the control's opacity to the passed value.
SetView(System.Drawing.Bitmap)
Sets the control's background image.
SetView(System.Drawing.Bitmap, byte) Sets the control's background image and opacity.
ShowSettings() Displays the gadget's settings menu.
SetOpacity(byte) Sets the control's opacity to the passed value.

Properties

  Name Description
bool AllowDrop Gets or sets a value that determines whether drag-and-drop operations are allowed in this Gadget.
bool AlwaysOnTop Gets or sets a value indicating whether this Gadget always stays on top of others.
bool AutoRefresh Gets or sets a value indicating whether this Gadget automatically refreshes its display.
int AutoRefreshInterval Gets or sets a value determining the interval at which the gadgets's display is refreshed when AutoRefresh is true.
bool CanMove Gets or sets a value indicating whether the Gadget can be moved.
System.Windows.Forms.ContextMenuStrip ContextMenuStrip Gets or sets the context menu.
CodeWonders.Sidebar.GadgetControlCollection Controls Gets or sets the controls of the gadget.
System.Drawing.Point CursorPosition Gets the momentary cursor position.
EnlargeButtonStates Enum { Bigger, Smaller }
string GadgetName Gets or sets the Gadget's name.
string InstallationFolder gets or sets the Sidebar's installation folder.
bool isDisposed When this property returns true, the control is disposed of and can no longer be referenced as a valid control. Even though the instance of a control is disposed of, it is still maintained in memory until it is removed from memory through garbage collection.
System.Drawing.Point Location Gets the momentary position of the control on the screen.
CodeWonders.Sidebar.SettingsManager Settings Defines SettingsManager
CodeWonders.Sidebar.SettingPanel SettingsPanel Gets or sets the gadget's settings panel.
bool ShowEnlargeButton Gets or sets a value indicating whether the enlarge-Button will be shown.
System.Drawing.Size Size Gets or sets the size of the gadget.
bool Visible Gets or sets a value indicating whether the gadget is visible.

Events

  Name Description
System.EventHandler Activated Occurs when the gadget is activated in code or by the user.
System.EventHandler Closing Occurs when the gadget is closing.
System.EventHandler Deactivated Occurs when the gadget loses focus and is no longer the active object.
System.Windows.Forms.DragEventHandler DragDrop Occurs when a drag-and-drop operation is completed.
System.Windows.Forms.DragEventHandler DragEnter Occurs when an object is dragged into the control's bounds.
System.Windows.Forms.DragEventHandler DragLeave Occurs when the cursor leaves the gadget's area while performing drag-and-drop.
System.Windows.Forms.DragEventHandler DragOver Occurs when an object is dragged over or inside the control's bounds.
System.EventHandler EnlargeButtonClicked Occurs when the 'enlarge'-button is clicked.
System.Windows.Forms.KeyEventHandler KeyDown Occurs when a key is pressed down while the gadget 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 Load Occurs when the gadget is loaded.
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.
System.EventHandler Move Occurs when the gadget is moved.
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.EventHandler OnGadgetDrag Occurs when the gadget is dragged.
System.EventHandler OnGadgetDrop Occurs when the gadget is dropped.
System.EventHandler OnGadgetMoving Occurs when the gadget is moving.
System.EventHandler OnHide Occurs when the gadget is hidding.
System.EventHandler OnSidebarEnter Occurs when the gadget enters the sidebar.
System.EventHandler OnSidebarLeave Occurs when the gadget leaves the sidebar..
System.Windows.Forms.PaintEventHandler Paint Occurs when the gadget is redrawn.
System.EventHandler Resize Occurs when the gadget's size changes.
CodeWonders.Sidebar.Gadget.SettingsDialogClosedEventHandler SettingsDialogClosed Occurs when the settings-dialog is closed.
System.EventHandler Shown Occurs whenever the gadget is first displayed.