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
 Drag Length

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
John Posted - Mar 16 2013 : 13:09:37
Hello

When I create an annotation drag line, i.e.
MouseInteractVt := MouseInteractVt + [miDragLen];
The length is dynamically displayed and refreshed on the screen as the mouse moves across the vector canvas.

What is the function to dynamically capture the displayed length so that it can be placed in a variable? I am specifically looking for the final length, prior to releasing the mouse.

TIA

John
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Mar 26 2013 : 23:37:01
Hello,
you can get the drag length, at the end, handling OnDragLenEnd event. It is fired one time.

Otherwise you can handle OnPresentMeasure, which is fired whenever the length changes.