Click to See Complete Forum and Search --> : Position on the bitmap...how?


Robotdude
February 12th, 2007, 07:38 PM
Hello,

I am trying to make it to where I can draw rectangles on the client space but everytime I scroll the bitmap, the rectangles follow staying in their same positions in the client area. The bitmap behind can be large and exceed the size of the client area. So how can I get it to where the rectangles stay in their proper locations on the bitmap, and not follow the client area when I scroll?

Thanks

vlongsoft
February 12th, 2007, 08:38 PM
Hi,
I think that you should change the values of coordinates (left, top) & (right, bottom) of the rectangle when scroll the bitmap.
I did not make sure i understood your idea....

Robotdude
February 13th, 2007, 06:47 PM
Thats a great idea. I can do that and when I save out the coordinates, I will make sure the client area is all the way to the top left corner so when saving them out, their coordinates will be saved out properly in proportion to the bitmap.

Thanks again.