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 Postprivate bool InObjectArea(MouseEventArgs e) { if (rect.Contains(cursor)) { return true; } else return false; }
Seems this method isn't firing. Seeing as you created a new Rectangle object here. Correct me if i'm wrong
public void RotateImage(Graphics pape,int rtangle) // method …
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.