Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Balloonhint equivalent for D2007

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
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
 
I got it too but could not make it to work the way I want to. I may have found something else on torry's page that may work.
I will post my findings when i am sure it is working.Something from alcinoe.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top