Click or drag to resize

ButtonController Class

Process mouse events for a standard button.
Inheritance Hierarchy

Namespace: Internal.ComponentFactory.Krypton.Toolkit
Assembly: NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class ButtonController : GlobalId, 
	IMouseController, IKeyController, ISourceController

The ButtonController type exposes the following members.

Constructors
 NameDescription
Public methodButtonController Initialize a new instance of the ButtonController class.
Top
Properties
 NameDescription
Public propertyAllowDragging Gets and sets if dragging is allowed.
Public propertyBecomesFixed Gets and sets if the button becomes fixed in pressed appearance when pressed.
Public propertyBecomesRightFixed Gets and sets if the button becomes fixed in pressed appearance when pressed.
Protected propertyCaptured Gets a value indicating if mouse input is being captured.
Public propertyClickOnDown Gets and sets if the press down should cause the click.
Public propertyId Gets the unique identifier of the object.
(Inherited from GlobalId)
Public propertyIgnoreVisualFormLeftButtonDown Should the left mouse down be ignored when present on a visual form border area.
Protected propertyIsOnlyPressedWhenOver Gets a value indicating if the state is pressed only when over button.
Protected propertyIsOperating Get a value indicating if the controller is operating
Public propertyMousePoint Gets the current tracking mouse point.
Public propertyNeedPaint Gets and sets the need paint delegate for notifying paint requests.
Public propertyNonClientAsNormal Gets and sets the drawing of a non client mouse position when pressed as normal.
Public propertyRepeat Gets and sets the need for repeat clicks.
Public propertySplitRectangle Gets and sets the area of the button which is split.
Public propertyTag Gets and sets the user data associated with the controller.
Public propertyTarget Gets access to the associated target of the controller.
Top
Methods
 NameDescription
Public methodClearDragRect Reset the dragging rect to prevent any dragging starting.
Public methodDoubleClick Left mouse button double click.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGotFocus Source control has lost the focus.
Public methodKeyDown Key has been pressed down.
Public methodKeyPress Key has been pressed.
Public methodKeyUp Key has been released.
Public methodLostFocus Source control has lost the focus.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodMouseDown Mouse button has been pressed in the view.
Public methodMouseEnter Mouse has entered the view.
Public methodMouseLeave Mouse has left the view.
Public methodMouseMove Mouse has moved inside the view.
Public methodMouseUp Mouse button has been released in the view.
Protected methodOnButtonDragOffset Raises the ButtonDragOffset event.
Protected methodOnButtonDragRectangle Raises the ButtonDragRectangle event.
Protected methodOnClick Raises the Click event.
Protected methodOnDragEnd Raises the DragEnd event.
Protected methodOnDragMove Raises the DragMove event.
Protected methodOnDragQuit Raises the DragQuit event.
Protected methodOnDragStart Raises the DragStart event.
Protected methodOnMiddleClick Raises the MiddleClick event.
Protected methodOnMouseSelect Raises the MouseSelect event.
Protected methodOnNeedPaint Raises the NeedPaint event.
Protected methodOnRightClick Raises the RightClick event.
Public methodPerformNeedPaint Fires the NeedPaint event.
Public methodPerformNeedPaint(Boolean) Fires the NeedPaint event.
Public methodRemoveFixed Remove the fixed pressed mode.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodUpdateTargetState(Control) Set the correct visual state of the target.
Protected methodUpdateTargetState(Point) Set the correct visual state of the target.
Protected methodViewIsPartOfButton Discovers if the provided view is part of the button.
Top
Events
 NameDescription
Public eventButtonDragOffset Occurs when the dragging inside the button drag rectangle.
Public eventButtonDragRectangle Occurs when the drag rectangle for the button is required.
Public eventClick Occurs when the mouse is used to left click the target.
Public eventDragEnd Occurs when drag ends.
Public eventDragMove Occurs when drag moves.
Public eventDragQuit Occurs when drag quits.
Public eventDragStart Occurs when start of drag operation occurs.
Public eventMiddleClick Occurs when the mouse is used to right click the target.
Public eventMouseSelect Occurs when the mouse is used to left select the target.
Public eventRightClick Occurs when the mouse is used to right click the target.
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also