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
 Determine when the mouse exits an annotation

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 - Jun 29 2018 : 22:52:46
Hi All,

I use ImageEnVect1.OnObjectOver to know when the move hovers an annotation but how can I be notified when the mouse is not over an annotation?

Thanks
Ron
2   L A T E S T    R E P L I E S    (Newest First)
rswyman@docuxplorer.com Posted - Jun 30 2018 : 08:22:19
This is what I came up with...

procedure TMainForm.ImageEnVect1MouseMove(Sender: TObject; Shift: TShiftState;
  X, Y: Integer);
var
  hobj: integer;
  Distance: double;
begin
  hobj := ImageEnVect1.FindObjectAt(x, y, Distance);
  if (lasthobj > -1) and (Distance > 1) then begin
    ImageEnVect1.ObjBrushColor[lasthobj] := clWhite;
    ImageEnVect1.ObjBrushStyle[lasthobj] := bsClear;
    lasthobj := -1;
  end;

  if (hobj > -1) and (ImageEnVect1.ObjKind[hobj] = iekTEXT) and (Distance < 1) then begin
    if (lasthobj > -1) then begin
      ImageEnVect1.ObjBrushColor[lasthobj] := clWhite;
      ImageEnVect1.ObjBrushStyle[lasthobj] := bsClear;
    end;
    ImageEnVect1.ObjBrushColor[hobj] := clYellow;
    ImageEnVect1.ObjBrushStyle[hobj] := bsSolid;
    Label6.Caption := ImageEnVect1.ObjText[hobj];

    lasthobj := hobj;
  end;
end;
xequte Posted - Jun 30 2018 : 01:48:43
Hi Ron

Use the standard TImageEnVect.OnMouseMove and FindObjectAt().

https://www.imageen.com/help/TImageEnVect.FindObjectAt.html

Nigel
Xequte Software
www.imageen.com