|
Hi, I don't really know how to explain this good enough. I have this code
Basically i want this to happen: 1)the user clicks somewhere, x1 and y1 will record where the click happened 2)the users clicks again, x2 and y2 will record the second click, find the top-left click and compute height and width of the rectangle formed by the two clicks 3)when the user clicks OK, record some info and bail out now, this is what happens after the first click FirstCorner was: True FirstCorner is: False X1: 530 X2: 0 second click FirstCorner was: False FirstCorner is: True X1: 530 X2: 729 now after clicking OK X1: 615 X2: 729 FirstCorner was: False FirstCorner is: True X1: 615 X2: 615 Done which is not correct. it is like the program jumped in the middle of the else branch even if OK was clicked. Any ideas?
(comments are locked)
|
