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
 Move/Resize vectorial object on non-top layer

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
akempf Posted - Mar 13 2014 : 04:19:41
Hi,

I am using a TImageEnVect component with three layers:
0 - a bitmap image
1 - rectangle objects to specify a region (ROI)
2 - vectorial objects (results of image processing)

The user should be able to move/resize the objects on layer 1. But it seems that only objects on the topmost layer are selectable by mouse.
Is there a way to allow users to move/resize objects on some non-top layer?
Or is the only solution to bring the layer to the front?

- Alexander

www.k-software.de
2   L A T E S T    R E P L I E S    (Newest First)
akempf Posted - Mar 20 2014 : 09:18:17
Thanks for your explanations, William.

I had no chance to try it but will do and let you know if that solved the problem.

- Alexander

www.k-software.de
w2m Posted - Mar 13 2014 : 10:54:17
There are two properties that control how objects are created with respect to layers. ObjAnchorToLayers and ObjLayer.

TImageEnVect.ObjAnchorToLayers

Declaration
property ObjAnchorToLayers:boolean;

Description
When true (default), all objects are anchored to a layer (using ObjLayer property). Otherwise (the old behavior) objects are just painted over all layers.


TImageEnVect.ObjLayer

Declaration
property ObjLayer[hobj:integer]:integer;

Description
Specifies layer index where the object is located (drawn and referenced). Default is "0" and means draw on layer 0.

To select an object on any layer set ObjAnchorToLayers := False.

If ObjAnchorToLayers is true (default) and you set the ObjLayer when you create the object the object will be constrained to the layer and can only be selected when the layer is selected.
ImageEnVect1.ObjLayer[ihObj] := ImageEnVect1.LayersCurrent;

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Custom ImageEn Development