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
 ImageEnVect1.MouseInteractVt := [miPutPolyline];
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Jan 26 2012 :  12:14:35  Show Profile  Reply
Hello,
I have a Problem with ImageEnVect1.MouseInteractVt := [miPutPolyline];
When I use only Layer0, everything is O.K., the line is to be seen.
Now,
ImageEnVect1.LayersAdd ();
ImageEnVect1.IEBitmap.Fill(clwhite,;
ImageEnVect1.MouseInteractVt := [miPutPolyline];
I see no line under the mouse more.
What I can do, so that looking the line at Layer1 is.

Klaus
www.klausdoege.de

fab

1310 Posts

Posted - Jan 26 2012 :  14:50:39  Show Profile  Reply
Hello,
the object is created into the layer specified by ObjLayer[].

So, your code should be:

ImageEnVect1.LayersAdd ();
ImageEnVect1.ObjLayer[-1] := ImageEnVect1.LayersCurrent;
ImageEnVect1.IEBitmap.Fill(clwhite); 
ImageEnVect1.MouseInteractVt := [miPutPolyline];


If you want create the object into currently selected layer then you have also to change ObjLayer[] whenever current layer changes. This can be done, for example, handling OnLayerNotify event:

procedure TForm1.ImageEnVect1LayerNotify(Sender: TObject; layer: Integer; event: TIELayerEvent);
begin
  if event = ielSelected then
    ImageEnVect1.ObjLayer[-1] := layer;
end;
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Jan 28 2012 :  14:00:49  Show Profile  Reply
Hello,
yes this works fine!
Thank you.

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