Print Page | Close Window

Tooltip Fails to Display - non-themed calendar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=16682
Printed Date: 16 May 2024 at 1:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltip Fails to Display - non-themed calendar
Posted By: Algae
Subject: Tooltip Fails to Display - non-themed calendar
Date Posted: 09 May 2010 at 8:30pm
Tooltips intermittently fail to display in non-themed calendar.

test 1
1. Open a calendar.
2. Do not apply a 2007 theme.
3. Create an event whose bounding rectangle encompasses all of the contents.
4. Tooltip will not display (custom or standard).

test 2
1. Open a calendar.
2. Do not apply a 2007 theme.
3. Create an event whose bounding rectangle does not encompass all of the contents.
4. Tooltip will display (custom or standard).

test 3
1. Open a calendar.
2. Do not apply a 2007 theme.
3. Create an event with a bounding rectangle of any size.
4. Resize the bounding rectangle.
5. Tooltip will display (custom or standard) .. but only the first time.

2007 theme works properly. Tooltip displays consistently regardless of event rectangle size. Regardless of whether the bounding rectangle is resized or not.

VS2008, 13.3.1, Static Unicode, Windows 7 pro



Replies:
Posted By: Algae
Date Posted: 08 June 2010 at 12:58pm

The problem comes from a check for the tool tip custom format.

This quick fix took care or it. I do not use the customformat4tooltip so whatever relies on that may be effected.

In method:

void CXTPCalendarViewEvent::OnMouseMove(UINT nFlags, CPoint point)


Change this:
    BOOL bForceTooltip = !GetCalendarControl()->m_sCustomFormat4Tooltip.IsEmpty();
to this:
    BOOL bForceTooltip = TRUE;





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