ImageEn, unit ievect

TImageEnVect.ObjStyle

TImageEnVect.ObjStyle


Declaration

property ObjStyle[hobj: integer]: TIEVStyle;


Description

ObjStyle sets some properties of the hobj object.

Default: [ievsSelectable, ievsMoveable, ievsSizeable, ievsVisible]

hobj is the ID of the object. You can also specify IEV_NEXT_INSERTED_OBJECT (-1) which refers to the next object to be inserted or IEV_PREVIOUS_INSERTED_OBJECT (-2) for the last object inserted.


Example

// Hides the object called "cloud"
hobj := ImageEnVect1.GetObjFromName('cloud');  // hobj is an integer
ImageEnVect1.ObjStyle[hobj] := ImageEnVect1.ObjStyle[hobj] - [ievsVisible];


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of ObjStyle, use the following:
ievsSelectable ImageEnView1.CurrentLayer.Selectable := True; TIELayer.Selectable
ievsMoveable ImageEnView1.CurrentLayer.Locked := True; Note: When a layer is locked, it cannot be moved or sized. You can use TImageEnView.OnLayerMoveSize to provide more specialized locking TIELayer.Locked
ievsSizeable ImageEnView1.CurrentLayer.Locked := True; Note: When a layer is locked, it cannot be moved or sized. You can use TImageEnView.OnLayerMoveSize to provide more specialized locking TIELayer.Locked
ievsVisible ImageEnView1.CurrentLayer.Visible := True; TIELayer.Visible
ievsHideGrips No equivalent. Grips are always shown if the object can be sized