Print Page | Close Window

Incorrect ToolTip icon for Gallery Items

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=8440
Printed Date: 02 March 2025 at 5:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Incorrect ToolTip icon for Gallery Items
Posted By: pavold
Subject: Incorrect ToolTip icon for Gallery Items
Date Posted: 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




Replies:
Posted By: Oleg
Date Posted: 17 October 2007 at 1:27am
Thanks,
we will change it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net