View Single Post
Old 03-19-2003, 01:22 PM   #7 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Finally, got it all installed and working.

The first thing you should do is changing your code such that the program exits on pressing the esc button.
It exits now on a keypress... we don't want that.

Then you can use :

int ix, iy;
testWindow.GetMouseClick(ix,iy);


Next thing is to compare if ix and iy is within your red lil boxes (:th: got it working:th: ).
If it is, implement code that belongs to that particular red box.

It is really that simple. But next time better learn the basics of classes. How are you going to implement code for each of the boxes? One big long line of code?
Just a hint .

- Val -
Valmont is offline   Reply With Quote