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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 About TImageEnVect OnObjectClick Event

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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...).