![]() |
Incorrect ToolTip icon for Gallery Items |
Post Reply
|
| Author | |
pavold
Newbie
Joined: 14 May 2007 Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Topic: Incorrect ToolTip icon for Gallery ItemsPosted: 16 October 2007 at 11:26am |
|
Hi,
I found that the icon shown in the tooltip for gallery items is wrong. It is actually shifted by 1. While I was trying to figure out what's wrong, I got the CXTPControlGallery::GetTooltip function. This part seems to prepare the tooltip for a particular gallery item RECT rcItem; int nIndex = HitTestItem(*pPoint, &rcItem); if (nIndex != -1) { *nHit = GetItem(nIndex)->GetID() + 1; *lpRectTip = rcItem; return GetItem(nIndex)->GetToolTip(); } The problem I have encountered seems to be related to "+1" in this line: *nHit = GetItem(nIndex)->GetID() + 1; If I remove it, the tooltip is shown corretly. However I'm not sure if I didn't break some else. Can you please confirm, that my fix is correct? Regards, Pavol |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 October 2007 at 1:27am |
|
Thanks,
we will change it.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |