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
 SetInteractionHint
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
497 Posts

Posted - Sep 29 2019 :  19:57:00  Show Profile  Reply
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

xequte

38222 Posts

Posted - Sep 30 2019 :  01:11:03  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: