Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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;