Suleman
07-16-2008, 01:18 PM
Hello to all,
I am working on a project i which i can drag and drop the elements on a canvas(drawing area) and resize them just like a drawing program. The elements which put on the canvas are divs. I can place a single div on the canvas, change its position with mouse and resize it it with mouse. I can place multiple objects on the canvas but when I move the element then i can only one element move at time. I want to make it that I select the different elements (by using shift+click or ctrl+click)and then move them on the canvas. In fact I implement the multiple selection as well but when I move the these selected elements then all elements comes on single location and then move. I want that these elements should remain on their propspective location. Just like in visual studio we draw the buttons on the form and then select these buttons and when we move all buttons move but their respection location.
Can any one help me (javascript and HTML)
Regards,
Suleman
I am working on a project i which i can drag and drop the elements on a canvas(drawing area) and resize them just like a drawing program. The elements which put on the canvas are divs. I can place a single div on the canvas, change its position with mouse and resize it it with mouse. I can place multiple objects on the canvas but when I move the element then i can only one element move at time. I want to make it that I select the different elements (by using shift+click or ctrl+click)and then move them on the canvas. In fact I implement the multiple selection as well but when I move the these selected elements then all elements comes on single location and then move. I want that these elements should remain on their propspective location. Just like in visual studio we draw the buttons on the form and then select these buttons and when we move all buttons move but their respection location.
Can any one help me (javascript and HTML)
Regards,
Suleman