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
 IEVolution 6.0.0 ObjectInserting.None

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
jritter Posted - Jun 28 2018 : 03:49:12
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.
5   L A T E S T    R E P L I E S    (Newest First)
jritter Posted - Jul 02 2018 : 01:59:22
Thank you very very very much! Works that way.
xequte Posted - Jul 01 2018 : 15:22:34
Hi

EnableObjectInserting should be followed by EnableObjectSelect=true:

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


Nigel
Xequte Software
www.imageen.com
jritter Posted - Jun 29 2018 : 09:33:40
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.
jritter Posted - Jun 28 2018 : 08:00:35
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.
xequte Posted - Jun 28 2018 : 06:26:22
Hi

Sorry, are you saying that this does not work:

ieViewer_Bild.EnableObjectInserting = IEViewer.ObjectInserting.None;


Nigel
Xequte Software
www.imageen.com