If you read my previous post about rects, I solved it and now enocountered another. They never end .
Now when I have 84 RECTS in one array, I have to see in which RECT mouse is.
RECTS are located like this in screen:
1... 2 ..3..4...5...6
7 20 33 46 59 72
8 21 34 47 60 73
9 22 35 48 61 74
10 23 36 49 62 75
11 24 37 50 63 76
12 25 38 51 64 77
13 26 39 52 65 78
14 27 40 53 66 79
15 28 41 54 67 80
16 29 42 55 68 81
17 30 43 56 69 82
18 31 44 57 70 83
19 32 45 58 71 84
(that can look messy- those dots are there just to make space)

Notice that the first line numbers are also the rect array numbers. It just was easier
to do it that way. Now I have the location of the cursor, and it can be "rounded" to Left/Top value of RECT. But I don't know how to make a function which would quickly search if one of the rects matched cursor's position. That's what I'm asking.

[This message has been edited by Lasse Holmstedt (edited 02-08-2000).]

[This message has been edited by Lasse Holmstedt (edited 02-08-2000).]

[This message has been edited by Lasse Holmstedt (edited 02-08-2000).]

[This message has been edited by Lasse Holmstedt (edited 02-08-2000).]