I combined mouse events o move my drawn rectangle object. Everything was fine i could move it and when i released the mouse button it stopped moving and settled down. However after rotating that object and then trying to move it around I just could not perform the action again. I have used the ResetTransform method at the end but this didn't help eihter. I have an alternative way for this but i would like to stick with that(above mentioned). Any sugestions what's going on behind the graphic scene and why i m unable to move my rectangle when rotation is performed?
castajiz_2 35 Posting Whiz
Recommended Answers
Jump to PostCode? In particular, your mouse event handlers, paint method, and anything you're using to track object position & orientation will be helpful.
Jump to PostIf you apply standard graphics programming concepts in things like OpenGL and DirectX you have a concept of matrices which control the location and rotation of your objects. (Sure you've heard of things like WorldSpace, CameraSpace and ModelSpace) This involves pushing and popping matrixes to apply the transforms correctly. This …
All 7 Replies
gusano79 247 Posting Shark
castajiz_2 35 Posting Whiz
Fenrir() 52 Newbie Poster
castajiz_2 35 Posting Whiz
castajiz_2 35 Posting Whiz
Ketsuekiame 860 Master Poster Featured Poster
castajiz_2 35 Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.