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
 Showing Hint

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
pierrotsc Posted - Feb 19 2012 : 15:20:10
I have showhint turn on for my imageenvect. Is it possible to add some code in the onmousemove event to display the RGB values of the pixels under the cursor in real time in a hint window?
Right now i am showing the values in a status bar but would like to be shown next to the cursor.
Like, when i rotate an image, i can see the rotation degree being displayed.

Thanks.
P
4   L A T E S T    R E P L I E S    (Newest First)
pierrotsc Posted - Feb 21 2012 : 09:55:05
thanks..I will try that.
xequte Posted - Feb 21 2012 : 02:24:35
Hi

You should be able to do this just using the standard hint of TImageEnVect. In the OnMouseMove event set the hint with the RGB value and use CancelHint when it changes.

Something like:

procedure Tfrmmain.AnIEVectMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
var
  sHint : string;
begin
  sHint := GetRGBValueAtPos(Sender, X, Y) ;
  if sHint <> AnIEVect.Hint then
  begin
    Application.CancelHint;
    AnIEVect.Hint := sHint;
  end;
end;



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
pierrotsc Posted - Feb 20 2012 : 09:15:42
Well, i was just trying to have imageenvect.hint display the current RGB values of the pixel under the cursor.
Ok..I'll wait...
fab Posted - Feb 20 2012 : 00:03:24
Next minor version will have the method SetInteractionHint to allow custom hints in TImageEnView/Vect.
It is already present in current version but as "protected", so you need to inherits from TImageEnView/Vect to see it.