May 27th, 2009, 04:09 PM
simple loop problem or pixel one
my code goes as
1.I check if the pixel colour is different from bakground colour in onLbutton down function
busindex=pDoc->InBus (tempx ,tempy );
2.my InBus ftn checks as:
if( x>= bus->m_x1 && x<=abs(bus->m_x2 -bus->m_x1))
if( y>= bus->m_y1 && y<=abs(bus->m_y2 -bus->m_y1))
getbus simply return a pointer 2 dat object in an array
this should return a index of object that has co-ordinates enclosing x,y
the problem is in 2 step it never goes in that if statements......
i cud not get it y??
1 reason i thought was of Mapping of co-ordinates....any ways pllzz think ........
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!