I don't typically answer help requests in PMs, but your question was well formed (congrads and thank you). You could have asked it here without posting the code.
Quote:
Basically it's a proc which has the ability to draw a grid.
What my next step is, would be to make a Mouse.Where so that when i click on the grid it shows the row # and the column #.
It would also show -1 if it's not clicking on the grid, or if it so happens to click on a line.
I completely am not sure what to do with the Mouse.Where though. :s
You do not have to give me the answer, maybe just some hints would do.
Turing's documentation for for the command is available at --
Mouse.Where. It will essentially give you the x and y pixel values of where the mouse is (and what state the clicker is in). The tricky part is mapping pixels to rows/columns.
This is perhaps best done through an example: imagine a grid where each cell is 10x10 pixels
column 1: 0-10
column 2: 11-20
column 3: 21-30
if we Mouse.Where tells us we're over pixel 15, how do we figure out that it falls into the range for column 2?
(extra hint: a particularly useful operator is
mod)