array of TRectangles in FMX
问题 I am trying to extend the code from this from using one TRectangle to using multiple rectangles that can be added at runtime. In that example the code to click on and drag applies only to that one TRectangle Rectangle1 . I need to make it more general so it works on any recangle I add to the form (the rectangles won't be there at design time). I found this code to create a custom class and it works fine to create new rectangles. I can assign methods that run when they are clicked on but i