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
 ImageEnVect.MouseInteract changes

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
rswyman@docuxplorer.com Posted - Aug 25 2020 : 07:40:36
Hi All,

We use the code below to enable a mangniferGlass. How should the
code below be reprogrammed or what is the replacement for code for
ImageEnVect.MouseInteract := [miMoveLayers, miResizeLayers];

procedure TImagEnFrm.MagnifierGlassCreate(x,y:integer);
var
  P:TPoint;
begin
  p.x := x;
  p.y := y;
  P := ImageEnVect.ScreenToClient(p);
  ImageEnVect.LayersDrawBox := true;
  x := ImageEnVect.Layers[0].ConvXScr2Bmp ( p.X );
  y := ImageEnVect.Layers[0].ConvYScr2Bmp ( p.Y );
  if _MagnifyLayer = 0 then begin
    _MagnifyLayer := ImageEnVect.LayersCount;
    ImageEnVect.LayersAdd;
    ImageEnVect.Layers[_MagnifyLayer].Magnify.Rate := 
ApplicationSettings.ImageProcessing.ByName('ImageMagnifyZoom').Value;
    ImageEnVect.Layers[_MagnifyLayer].VisibleBox := true;
    ImageEnVect.Layers[_MagnifyLayer].Width := 
ApplicationSettings.ImageProcessing.ByName('ImageMagnifyWidth').Value;
    ImageEnVect.Layers[_MagnifyLayer].Height := 
ApplicationSettings.ImageProcessing.ByName('ImageMagnifyHeight').Value;
    ImageEnVect.Layers[_MagnifyLayer].Magnify.Enabled := true;
    ImageEnVect.Layers[_MagnifyLayer].Magnify.Style := iemRectangle;
    ImageEnVect.Layers[_MagnifyLayer].Magnify.Source := iemBackgroundLayer;
    ImageEnVect.Layers[_MagnifyLayer].drawOuter := false;
    ImageEnVect.Layers[_MagnifyLayer].VisibleBox := true;
  end;
  ImageEnVect.Layers[_MagnifyLayer].Posy := y ;
  ImageEnVect.Layers[_MagnifyLayer].Posx := x;
  ImageEnVect.MouseInteract := [miMoveLayers, miResizeLayers]; //now broken
 
  dxMagnifyZoom.Value := ImageEnVect.Layers[_MagnifyLayer].Magnify.Rate ;
  // show it
  ImageEnVect.Layers[_MagnifyLayer].Visible := True;
  ImageEnVect.LayersCurrent := 0;
  ImageEnVect.Update;
end;

Thanks
Ron
2   L A T E S T    R E P L I E S    (Newest First)
rswyman@docuxplorer.com Posted - Aug 25 2020 : 16:08:47
great thx!
xequte Posted - Aug 25 2020 : 16:07:07
Hi Ron

Please change this line:
ImageEnVect.MouseInteract := [miMoveLayers, miResizeLayers];


To:
ImageEnVect.MouseInteractLayers := [mlMoveLayers, mlResizeLayers];


The rest should be the same.

https://www.imageen.com/help/Compatibility.html

Nigel
Xequte Software
www.imageen.com