Objective Grid for Microsoft® .NET® Reference Guide

BtnBase Members

Back to Class Index

BtnBase overview

Public Instance Constructors

BtnBase Constructor Initialize a new instace of the BtnBase class.

Public Instance Properties

Bounds Gets the button's bound rectangle.
Location Gets or sets the button's position.
MouseIn Gets or sets the mouse presence state for the button.
Press Gets or sets the pressed state of the button.
ptMouse Gets or sets mouse coordinates and changes the MouseIn property accordingly.
Size Gets or sets the button's size.
Visible Gets or sets the visibility state of the button.

Public Instance Methods

ContainsOverloaded. Determines if a point is in the button.
DisposeOverloaded. Implements IDisposable.Dispose method.
Draw Performs custom button painting.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
MouseDown Handles the MouseDown event from the parent.
MouseLeave Handles the MouseLeave event from the parent.
MouseMove Handles the MouseMove event from the parent.
MouseUp Handles the MouseUp event from the parent.
ToString (inherited from Object)Returns a String that represents the current Object.

Public Instance Events

Click Handles events when the control is clicked.

Protected Instance Fields

m_bMouseIn Mouse position indicator.
m_bPressed Pressed state indicator.
m_bVisible Visibility state indicator.
m_hMouseDown Handles events for the parent's MouseDown event.
m_hMouseMove Handles events for the parent's MouseMove event.
m_hMouseUp Handles events for the parent's MouseUp event.
m_Parent Reference to the containing control.
m_ptMouse Mouse coordinates.
m_rcSizeAndPos A rectangle that holds a button's size and position.

Protected Instance Methods

DisposeOverloaded. Disposes resources and detaches from the parent control.
Finalize Destructor.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnClick Raises the Click event.

See Also

BtnBase Class | Stingray.Grid Namespace