Select graphic object with mouse lazarus / 39-Graphics ---------------------------------------------------------------------- MSC · 2014-12-08 11:41 Friends, I got stuck on a problem of selecting a graphical object. Also on brother google I´ve found no useful results. Since this is very common in many programs (like CAD, FlowChart), all sourcecode I have found was very special, difficult to understand and not applicable to my problem. My problem: I´m going to create a piece of software similar to a flowchart. So I have created a basic object TRectangle in a separate unit. In my main program, I have created many different graphical objects (e.g. colorized rectangles) which are inherited fom TRectangle and placed them on a TImage canvas. Now I want to select one of these objects and move it around the canvas using mouse down-move-up. I think I know the basic functionality to move the object, but in the mouse routines the actual clicked object is needed. How can I find out, which object was clicked? Regards MSC Windows 7 64 bit Lazarus 1.2.4 32 bit FPC 2.6.4 ---------------------------------------------------------------------- circular · 2014-12-08 13:16 It seems you have already started this topic there: http://forum.lazarus.freepascal.org/index.php/topic,26524.0.html Regards ---------------------------------------------------------------------- MSC · 2014-12-08 13:59 Sorry - please close it.