ShowGrid |
This is true or false if you want the grid to display in the controls workspace Example: object.ShowGrid = True |
---|---|
GridColor |
What color you want the grid to be Example: object.GridColor = color.red |
Cells |
How many grids you want (row x col) Example: object.Cells = new size(10, 10) |
setCell |
Definition: Definition: Definition: Definition: |
---|---|
removeCell |
Definition: Definition: |
clearCells |
Definition: clearCells() Example: object.clearCells() Note: This removes all cells from the grid |
gridClick |
This is fired when you click somewhere in the grid. Returns: Object and GridPosition |
---|---|
gridDoubleClick |
This is fired when you double click somewhere in the grid. Returns: Object and GridPosition |
gridMouseMove |
This is fired when you move the mouse somewhere in the grid. Returns: Object and GridPosition |
gridMouseUp |
This is fired after you click somewhere in the grid. Returns: Object, MouseEventArgs and GridPosition |
gridMouseDown |
This is fired after you click somewhere in the grid. Returns: Object, MouseEventArgs and GridPosition |
GridPosition
is always expressed as a Point. Lets say your grid was 10x10 and the user clicks in the 5th cell of the 5th row. In any of these special events the value of gridPosition would be point(5, 5).