I am trying to create a grid with the CanvasGadget. I can drag select cells as long as the last selected cell is greater than the first selected cell:
Code: Select all
If mX => colX(c) And mX <= colX(c) + *array\colWidths(c)
If mY => rowY(r) And mY <= rowY(r) + *array\rowHeights(r)
*array\selEndR = r
*array\selEndC = c
If *array\selEndC < *array\selStartC
EndIf
If *array\selEndR < *array\selStartR
EndIf
DrawGrid()
Break
EndIf
EndIf
I'm not using one of the existing grid controls available on the forums as I want to build my own from scratch to meet my needs.