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
 IEVolution 6.0.0 ObjectInserting.None
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jritter

Germany
19 Posts

Posted - Jun 28 2018 :  03:49:12  Show Profile  Reply
Hi,

sorry if I'm just stupid, but how do I change the IEViewer.InsertObject - object back to "None"?

What I do:

Create Polyline

                IEObjectPolyLine Poly = new IEObjectPolyLine(ieViewer_Bild.Image.Annotations);
                ieViewer_Bild.EnableObjectInserting = IEViewer.ObjectInserting.PolyLine;
                Poly = (IEObjectPolyLine)ieViewer_Bild.Image.Annotations.GetTemplateObject(IEObjectType.Polyline);
                Poly.PenColor = new IERGB(255, 10, 10);
                Poly.PenWidth = 1;
                Poly.Name = "Poly";
                Poly.Closed = true;
                


Cancel Polyline

                ieViewer_Bild.EnableObjectInserting = IEViewer.ObjectInserting.Box;
               //ieViewer_Bild.EnableObjectInserting = IEViewer.ObjectInserting.Line;
                                
                ieViewer_Bild.EnableObjectInserting = IEViewer.ObjectInserting.ObjectSelect;
                ieViewer_Bild.EnableObjectInserting = IEViewer.ObjectInserting.None;
                ieViewer_Bild.Refresh();
                ieViewer_Bild.Update();
                Debug.Print(ieViewer_Bild.EnableObjectInserting.ToString());


Switching to Box, Ellipse, ObjectSelect... works, deactivating it doesn't.

Thanks for any hint.

xequte

39053 Posts

Posted - Jun 28 2018 :  06:26:22  Show Profile  Reply
Hi

Sorry, are you saying that this does not work:

ieViewer_Bild.EnableObjectInserting = IEViewer.ObjectInserting.None;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jritter

Germany
19 Posts

Posted - Jun 28 2018 :  08:00:35  Show Profile  Reply
Hi,

yes.


                ieViewer_Bild.EnableObjectInserting = IEViewer.ObjectInserting.Box;
               
                ieViewer_Bild.EnableObjectInserting = IEViewer.ObjectInserting.None;
               
                Debug.Print(ieViewer_Bild.EnableObjectInserting.ToString());


Returns "Box" in the debug-console and a mouse-click in my ieViewer-Image does add a box.
Go to Top of Page

jritter

Germany
19 Posts

Posted - Jun 29 2018 :  09:33:40  Show Profile  Reply
Update:

I created a new empty project and added a new ieviewer-control.
If I change the "EnableObjectInserting" option in "Mouse Interactions" in Visual Studio to something else than "None", I cannot change it back to "None".
I can choose everything from the list, except "None".

Tested in Visual Studio 2017 and IEvolution 6.0.0, I will try to test it in VS 2015 next week.
Go to Top of Page

xequte

39053 Posts

Posted - Jul 01 2018 :  15:22:34  Show Profile  Reply
Hi

EnableObjectInserting should be followed by EnableObjectSelect=true:

ieViewer1.EnableObjectInserting = IEViewer.ObjectInserting.None;
ieViewer1.EnableObjectSelect=true;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jritter

Germany
19 Posts

Posted - Jul 02 2018 :  01:59:22  Show Profile  Reply
Thank you very very very much! Works that way.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: