In my D2009 code, i use this code below to display a RGB value when i right-click with my mouse on an imageen component.
if (Button = mbRight) then
begin
BalloonHint.description := 'Current R:' + inttostr(RGB.r)
+ ' G:' + inttostr(RGB.G) + ' B:' + inttostr(RGB.B);
BalloonHint.description := BalloonHint.description + #10 +
'Suggested R:' + inttostr(ChartColor[Carrelocation].r)
+ ' G:' + inttostr(ChartColor[Carrelocation].G)
+ ' B:' + inttostr(ChartColor[Carrelocation].B);
pt.X := X;
pt.Y := Y;
BalloonHint.HideAfter := -1;
BalloonHint.ShowHint(Imagecopy_CD.ClientToScreen(pt));
end;
now, i need to use this code in d2007 but there's no balloonhint in d2007. i tried to use the jvcl hint but could not get it to work.
does anybody know if there's a component for d2007 that will let me accomplish the same thing.
thanks.
p
if (Button = mbRight) then
begin
BalloonHint.description := 'Current R:' + inttostr(RGB.r)
+ ' G:' + inttostr(RGB.G) + ' B:' + inttostr(RGB.B);
BalloonHint.description := BalloonHint.description + #10 +
'Suggested R:' + inttostr(ChartColor[Carrelocation].r)
+ ' G:' + inttostr(ChartColor[Carrelocation].G)
+ ' B:' + inttostr(ChartColor[Carrelocation].B);
pt.X := X;
pt.Y := Y;
BalloonHint.HideAfter := -1;
BalloonHint.ShowHint(Imagecopy_CD.ClientToScreen(pt));
end;
now, i need to use this code in d2007 but there's no balloonhint in d2007. i tried to use the jvcl hint but could not get it to work.
does anybody know if there's a component for d2007 that will let me accomplish the same thing.
thanks.
p