Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Tooltip for Allday Event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tooltip for Allday Event

 Post Reply Post Reply
Author
Message
JDZA View Drop Down
Newbie
Newbie


Joined: 22 April 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote JDZA Quote  Post ReplyReply Direct Link To This Post Topic: Tooltip for Allday Event
    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
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
JDZA View Drop Down
Newbie
Newbie


Joined: 22 April 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote JDZA Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2009 at 9:08am
But it seems that I'm blind. I can't find this feature.
 
Ian 
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2009 at 1:10pm
Sure you not blind - this feature is coming in 13.1
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.125 seconds.