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
 SetInteractionHint

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 - Sep 29 2019 : 19:57:00
Right now I display Coordinates, K value and RGB values in one line.
This is my code:
imageenview.SetInteractionHint(Format('%d %d', [BX, BY]) + ' K%=' +
formatfloat('##0', (255 - GetRValue(RGBColor)) / 2.55) + ' R=' +
IntToStr(GetRValue(RGBColor)) + ' G=' + IntToStr(GetGValue(RGBColor)) +
' B=' + IntToStr(GetBValue(RGBColor)), X, Y, '0000 0000');

The thing is that it is too long and part disappears when i am at the edge of the image. anyway i could have coordinates, k and rgb vertically ? one on each line ?
X,Y
K
R
G
B
instead of X,Y K R G B ?

Thanks
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 30 2019 : 01:11:03
Hi

You can just write your own hint code in the mouse move event, e.g.

  currentHint := 'X,Y' + #13#10 + 'K' + #13#10 + 'R';
  if currentHint <> ImageEnView1.Hint then
  begin
    Application.CancelHint;
    ImageEnView1.Hint := currentHint;
  end;


Nigel
Xequte Software
www.imageen.com