Print Page | Close Window

Tooltip for Allday Event

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=14102
Printed Date: 18 June 2024 at 7:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltip for Allday Event
Posted By: JDZA
Subject: Tooltip for Allday Event
Date Posted: 22 April 2009 at 6:56am
Hi,
 
is there a way to enable the tooltip, when the event is an alldayevent? I get only Tooltips for the non-alldayevents.
 
Greetings
Ian



Replies:
Posted By: dentor
Date Posted: 23 April 2009 at 3:07am
Hello JDZA,
 
You can show tooltip for allday event.
 
Below a sample with different cases for tooltip:
 
* AllDay Event: tooltip show only Subject
* other Event: tooltip show StartTime-EndTime and Subject
* no Event: tooltip show StartTime
 
---------------------------------------------------------------------------
 
Private Sub CalendarControl_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim HitTest As CalendarHitTestInfo
    
    Set HitTest = CalendarControl.ActiveView.HitTest
    If Not HitTest.ViewEvent Is Nothing Then
        If HitTest.ViewEvent.Event.AllDayEvent Then
            CalendarControl.ToolTipText = HitTest.ViewEvent.Event.Subject
        Else
            CalendarControl.ToolTipText = JustTime(HitTest.ViewEvent.Event.StartTime) & "-" & JustTime(HitTest.ViewEvent.Event.EndTime) & " " & HitTest.ViewEvent.Event.Subject
        End If
    Else
        CalendarControl.ToolTipText = JustTime(HitTest.HitDateTime)
    End If
End Sub
 
Private Function JustTime(Dt As Date) As String
    JustTime = Format(Dt, "hh:nn")
End Function
 


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 SP 6


Posted By: mdoubson
Date Posted: 02 May 2009 at 6:55pm
Now this feature supported on Core level - without client code to use. You just need to set once e.g. 

CalendarCtrl.CustomFormat4Tooltip = " My subject = <SUBJ> @ <TIME> in <LOC> with <BODY>"

and <TAG> will replaced by specific value for event and fillers (like "My subject =" ) can be used to make all tooltip better looking (if you want it)
You can use tags in any order and also use one some of tags or one. This "CustomFormat4Tooltip" will overwrite other modes and show tooltip for each variable source of info (All Day, Multi Days and so on)


-------------
Mark Doubson, Ph.D.


Posted By: JDZA
Date Posted: 05 May 2009 at 9:08am
But it seems that I'm blind. I can't find this feature.
 
Ian 


Posted By: mdoubson
Date Posted: 07 May 2009 at 1:10pm
Sure you not blind - this feature is coming in 13.1

-------------
Mark Doubson, Ph.D.



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