Print Page | Close Window

The GetItemText event does not fire with no focus

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=18342
Printed Date: 05 July 2024 at 12:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: The GetItemText event does not fire with no focus
Posted By: rgelb
Subject: The GetItemText event does not fire with no focus
Date Posted: 08 May 2011 at 2:24pm
I have a VB6 app that uses the Calendar Control 11.2.2

I am trying to do custom tooltips.  To that end:

    MonthlyViewCal.EnableToolTips True
    MonthlyViewCal.AskItemTextFlags.SetFlag xtpCalendarItemText_EventToolTipText

then in event:

    Private Sub MonthlyViewCal_GetItemText(ByVal ItemParams As            XtremeCalendarControl.CalendarGetItemTextParams)
         If ItemParams.Item = xtpCalendarItemText_EventToolTipText Then
             ' build the tooltip here. 
         End If
    
    End Sub

This works as long as the control has focus.  But if it does not, the even won't even fire.  What can I do (short of the calendar control always having focus) to make it fire when it does not have focus?

Thanks.




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