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
 Objekt over a Layer ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - May 13 2012 :  16:05:42  Show Profile  Reply
Hello,
if I use a background and a layer, then objects are not shown,
the object is always behind the Layer.
Can I put an object over one layer ?
If yes, then how ?

Klaus

Klaus
www.klausdoege.de

Boban

Yugoslavia
41 Posts

Posted - May 13 2012 :  17:17:37  Show Profile  Reply
Hi Klaus

Try this.

procedure TForm1.FormActivate(Sender: TObject);
begin
ctrlch := false;
ImageEnView1.SetLayersGripStyle(clBlack,clInfoBk,bsSolid,4,iegsCircle;
ImageEnView1.ForceALTkey:=true;
ImageEnView1.LayersSync := false;
ImageEnView1.MouseInteract := [miMoveLayers, miResizeLayers];

end;

procedure TForm1.Button1Click(Sender: TObject);
begin
ImageEnView1.MouseInteractVt := [miPutText];

end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ImageEnView1.MouseInteractVt := [miSelect];

end;
//Properties (OnSelectObject)
procedure TForm1.ImageEnView1SelectObject(Sender: TObject);
var
q, obj: integer;
begin
// load properties to "Object properties"
ctrlch := true;
obj := -1; // -1 is next object (new object to insert)
with ImageEnView1 do
for q := -1 to SelObjectsCount - 1 do
begin
if q >= 0 then
obj := SelObjects[q];

end;
ctrlch := false;

end;
Go to Top of Page

fab

1310 Posts

Posted - May 14 2012 :  00:54:58  Show Profile  Reply
It is possible to anchor an object to a layer with ObjLayer[] property.

// create next objects on layer 1
ImageEnVect1.ObjLayer[IEV_NEXT_INSERTED_OBJECT] := 1;
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - May 14 2012 :  14:23:58  Show Profile  Reply
Hello,
thank you, i will try it.
Klaus

Klaus
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: