Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Tooltip Fails to Display - non-themed calendar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tooltip Fails to Display - non-themed calendar

 Post Reply Post Reply
Author
Message
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Topic: Tooltip Fails to Display - non-themed calendar
    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
Back to Top
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post 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;


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.