T O P I C R E V I E W |
oyefer |
Posted - Apr 04 2012 : 22:17:26 I clicked object, but no event happened. |
3 L A T E S T R E P L I E S (Newest First) |
fab |
Posted - Apr 05 2012 : 00:11:28 quote: What can I do to catch ObjectClick Event in this case?
You cannot. miScroll cannot work when miObjectSelect is enabled. Why FindObjectAt in OnMouseDown/Up is not a good way? |
oyefer |
Posted - Apr 04 2012 : 23:52:49 Thanks. I need to set miScroll, then I can move and zoom image easily by mouse. What can I do to catch ObjectClick Event in this case? Now I use FindObjectAt() in OnMouseDown and OnMouseUp event, when I click on object, distance returns by FindObjectAt() equals 0. But it seems to be not a good way. |
fab |
Posted - Apr 04 2012 : 23:17:26 Have you set miObjectSelect?
ImageEnVect.MouseInteractVt := [miObjectSelect];
It works on my tests (of course only selecting a vectorial object, like iekLINE, iekRULER, etc...). |