ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 About TImageEnVect OnObjectClick Event
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

oyefer

2 Posts

Posted - Apr 04 2012 :  22:17:26  Show Profile  Reply
I clicked object, but no event happened.

fab

1310 Posts

Posted - Apr 04 2012 :  23:17:26  Show Profile  Reply
Have you set miObjectSelect?

ImageEnVect.MouseInteractVt := [miObjectSelect];

It works on my tests (of course only selecting a vectorial object, like iekLINE, iekRULER, etc...).
Go to Top of Page

oyefer

2 Posts

Posted - Apr 04 2012 :  23:52:49  Show Profile  Reply
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.
Go to Top of Page

fab

1310 Posts

Posted - Apr 05 2012 :  00:11:28  Show Profile  Reply
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?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: