C# Class AnimatGuiCtrls.Controls.ImageListDrag

Provides the ability to create 32-bit alpha drag images using the ImageList drag functionality in .NET.
Inheritance: IDisposable
Show file Open project: NeuroRoboticTech/AnimatLabPublicSource Class Usage Examples

Public Methods

Method Description
CompleteDrag ( ) : void

Completes a drag operation.

Dispose ( ) : void

Clears up any resources associated with this object. Note there are only resources associated when there is a drag operation in effect.

DragDrop ( ) : void

Shows the ImageList drag image at the current dragging position.

HideDragImage ( bool state ) : void

Shows or hides the drag image. This is used to prevent painting problems if the area under the drag needs to be repainted.

ImageListDrag ( ) : System

Constructs a new instance of the ImageListDrag class.

StartDrag ( int imageIndex ) : void

Starts a dragging operation which will use an ImageList to create a drag image and defaults the position of the image to the cursor's drag point.

StartDrag ( int imageIndex, int xOffset, int yOffset ) : void

Starts a dragging operation which will use an ImageList to create a drag image and allows the offset of the Image from the drag position to be specified.

Private Methods

Method Description
ImageList_BeginDrag ( IntPtr himlTrack, int iTrack, int dxHotspot, int dyHotspot ) : int
ImageList_DragEnter ( IntPtr hwndLock, int X, int Y ) : int
ImageList_DragLeave ( IntPtr hwndLock ) : int
ImageList_DragMove ( int X, int Y ) : int
ImageList_DragShowNolock ( int fShow ) : int
ImageList_EndDrag ( ) : void
ImageList_GetDragImage ( POINTAPI &ppt, POINTAPI &pptHotspot ) : int
ImageList_SetDragCursorImage ( IntPtr himlDrag, int iDrag, int dxHotspot, int dyHotspot ) : int

Method Details

CompleteDrag() public method

Completes a drag operation.
public CompleteDrag ( ) : void
return void

Dispose() public method

Clears up any resources associated with this object. Note there are only resources associated when there is a drag operation in effect.
public Dispose ( ) : void
return void

DragDrop() public method

Shows the ImageList drag image at the current dragging position.
public DragDrop ( ) : void
return void

HideDragImage() public method

Shows or hides the drag image. This is used to prevent painting problems if the area under the drag needs to be repainted.
public HideDragImage ( bool state ) : void
state bool True to hide the drag image and /// allow repainting, False to show the drag image.
return void

ImageListDrag() public method

Constructs a new instance of the ImageListDrag class.
public ImageListDrag ( ) : System
return System

StartDrag() public method

Starts a dragging operation which will use an ImageList to create a drag image and defaults the position of the image to the cursor's drag point.
public StartDrag ( int imageIndex ) : void
imageIndex int The index of the image in /// the ImageList to use for the drag image.
return void

StartDrag() public method

Starts a dragging operation which will use an ImageList to create a drag image and allows the offset of the Image from the drag position to be specified.
public StartDrag ( int imageIndex, int xOffset, int yOffset ) : void
imageIndex int The index of the image in /// the ImageList to use for the drag image.
xOffset int The horizontal offset of the drag image /// from the drag position. Negative values move the image /// to the right of the cursor, positive values move it /// to the left.
yOffset int The vertical offset of the drag image /// from the drag position. Negative values move the image /// below the cursor, positive values move it above.
return void