ImageEn, unit ievect

TImageEnVect.SetObjFrontOf

TImageEnVect.SetObjFrontOf


Declaration


procedure SetObjFrontOf(hobj: integer; refobj: integer);


Description


SetObjFrontOf visually moves object hobj in front of refobj.

If refobj is -1, SetObjFrontOf moves hobj in front of all objects.
If refobj is -2, SetObjFrontOf brings the object in front of the next (over it).

IEV_ALL_SELECTED_OBJECTS can be specified for hobj to refer to all objects that are currently selected.


Example


....
obj1 := AddNewObject;
....
obj2 := AddNewObject; // obj2 is over obj1
....
ImageEnVect1.SetObjFrontOf( obj1, obj2 ); // obj1 is over obj2

ImageEnVect1.SetObjBackTo( obj1, obj2 ); // now obj2 is over obj1

// Move obj1 in front of all objects
ImageEnVect1.SetObjFrontOf(obj1, -1);

// Move obj1 forward
ImageEnVect1.SetObjFrontOf(obj1, -2);


See Also


- SetObjBackTo