Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Moving clickedShapes and only clickedShapes on a panel

 
Kieran Murray
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I can not find a way of only moving the clickedShape in my code.
The code allows you to scale some drawn objects and add rectangles.
You can also move the panel around.
What would be useful now would be to just move the object that is clicked.
Unfortunately the code below does not do this.





The aim is to move all the objects when I click on the panel and just move the clickedObject when I click on it.

Kind regards,

The Apprentice
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a way to explore the dragging of the geom primitives.
 
Kieran Murray
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Craig,

A tardy thank you. The code you provided is the basis of my drawing application. It is really excellent code.

Kind regards,

Kieran
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic