Hi Shaul,

Not sure I understand, do you want to stay the rectangle within another 
rectangle area?
There is nothing implemented like that.
But as you can study in the rectangle tool, you can do whatever you want there, 
same for the dragtool.
Just copy the code of the tool in question, and restrict it in in the way you need, tuned to your application. Next as all other tools push it (your own version) on the tool controller stack, or whatever method you are using to start tools.
 It is of course some work, hope it answers your question.

Regards,

Klaas

On 12/09/2024 11:22, Shaul Stavi wrote:
Is there a way to restrict the move of an a2dRect on dragging to a certain 
boundary?
Thank you,
Shaul





_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to