Tooltip for Allday Event |
Post Reply |
Author | |
JDZA
Newbie Joined: 22 April 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
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
|
|
dentor
Senior Member Joined: 30 November 2005 Location: France Status: Offline Points: 102 |
Post Options
Thanks(0)
|
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 |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
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) |
|
JDZA
Newbie Joined: 22 April 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
But it seems that I'm blind. I can't find this feature.
Ian
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Sure you not blind - this feature is coming in 13.1
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |