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
 How to change Stacking order of Objects
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
728 Posts

Posted - Apr 28 2016 :  07:44:16  Show Profile  Reply
Hello,

I am using ImageEnVect and am allowing user to add rectangle object using this code:
ievMain.ObjKind[IEV_NEXT_INSERTED_OBJECT] := iekBOX;
  ObjID := ievMain.AddNewObject;
  ievMain.ObjLeft[ObjID] := 0;
  ievMain.ObjTop[ObjID] := 0;
  ievMain.ObjWidth[ObjID] := 50;
  ievMain.ObjHeight[ObjID] := 50;
  ievMain.SelObjects[ObjID];

Things are working as expected.

But the problem is I am not able to move selected Obj behind or above other objects. How to achieve this?

TIA


Yogi Yang

w2m

USA
1990 Posts

Posted - Apr 28 2016 :  07:54:07  Show Profile  Reply
ImageEnVect1.SetObjFrontOf( obj1, obj2 ); // obj1 is over obj2
ImageEnVect1.SetObjBackTo( obj1, obj2 ); // now obj2 is over obj1

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

yogiyang

India
728 Posts

Posted - Apr 28 2016 :  10:01:24  Show Profile  Reply
Bill,

Thanks. You saved me from pulling my hair off!!!

Regards,


Yogi Yang
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: