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
 Vectorial demo & Insert Objects question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

harry stahl

Germany
62 Posts

Posted - Jul 28 2016 :  16:42:20  Show Profile  Reply
Hi, I use the know how from your Vectorial demo to insert Vector objects into the ImageEnVect (directly after inserting I burn it to the Background).

1. When Im in inserting mode, every mouseclick inserts a new obect, even when the mouse was not moved.

I want that an object will be insert, only, if the user "draws" the object, but not with one mouse-click.

How can I reach that?

2. An additional question:

Alternatively I want to offer, that the object is not directly burned to the background Image, and the working-modus is moving and selection the object. Only when the user draw an other object or change the working-tool (or click beside the just created object), then the object should be burnded.

Any idea, how I can reach that?


HS

xequte

38611 Posts

Posted - Jul 28 2016 :  17:26:04  Show Profile  Reply
Hi

1. There is not an option to handle that automatically, but you could allow the user to make a selection:

ImageEnView1.MouseInteract := [ miSelect ];

Then in the OnSelectionChange event create an object in the selection rect.


2. Use the events such as OnNewObject to detect when an object has been added, and merge it then.





Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

harry stahl

Germany
62 Posts

Posted - Jul 29 2016 :  18:27:48  Show Profile  Reply
Hi Nigel,

thank you, that could be a solution.

In the meantime I found an other one:

I remember mouseposition at mousedown- and mouseup-click. When the position is the same (that indicate, that there was no mouse-movement), I directly delete the created object in the event "OnNewObject".




HS
Go to Top of Page

xequte

38611 Posts

Posted - Jul 30 2016 :  00:58:13  Show Profile  Reply
Nicely done :-)

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: