[Drawkit] tool to create object of pre-set size then click to place?

Allan Daly allandaly at me.com
Tue Dec 29 22:48:17 PST 2009


DK list --

For my application I want to have a drawing tool that when clicked  
creates a DKDrawableShape of a pre-set size that then appears already  
made to the user for them to move into the position they want it and  
then place with a click. The pre-made shape would be stuck to the  
insertion cursor as in a drag/drop operation but the user would not  
have to hold the mouse button down to position the object. This is  
sort of like the "stamp" tool found in Adobe Acrobat.

Anybody done anything like this or have any ideas as to the best way  
to implement this in DK?

This one has me stumped at the moment. My only thought is to create  
the object programmatically (easy) and then initiate a drag operation  
programmatically. I have not done the drag part before and wonder  
wouldn't the user end up needed to hold down the mouse button? Or am I  
thinking about this all wrong?

Thanks for any help anyone can send my way.

-- Allan


More information about the Drawkit mailing list