------------------------------------------------------------------------
 Drag Copy Cell Value Sample for iGrid ActiveX
 
 Control Version: 5.0
 Environment: Visual Basic 6

 Copyright (c) 10Tec Company. All rights reserved.
------------------------------------------------------------------------

Description
===========
In MS Excel, you can copy a cell value by placing the cursor at the right corner of the cell when it becomes a small crosshair and when dragging the mouse over the destination cells. In this sample we implement a similar functionality in iGrid.

Short Code Explanation
======================
The main part of work is done in iGrids mouse related events, such as MouseDown, MouseEnter, etc. iGrid allows you to select several adjacent cells with the help of drag select, and this feature is exploited in our implementation.

When the drag select is finished, MouseUp is also raised, and we populate the selected cells using the value from the current cell the selection was started from.

Like in Excel, the same operation can be started even if the current cell is in edit mode. To do the same in iGrid, the TextEditMouseDown event is used. It is fired when the mouse pointer is over the cell text editor. We automatically commit the editing and imitate mouse click as if drag select were started with the WinAPI mouse_event function in this event.
