Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Suggestion:  Add the ability to display holidays
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Suggestion: Add the ability to display holidays

 Post Reply Post Reply
Author
Message
PeterG View Drop Down
Newbie
Newbie
Avatar

Joined: 24 February 2010
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote PeterG Quote  Post ReplyReply Direct Link To This Post Topic: Suggestion: Add the ability to display holidays
    Posted: 28 May 2011 at 5:01pm
I want to be able to display holidays on a calendar with multiple schedules.  The only way I can do it now is to add all-day events to at least one of the schedules.  This is okay but it would be cleaner if I could just add some text to the calendar caption bar or modify the Date Label displayed.  I can't find a way to do either of these in the current implementation.

How have other people handled holidays?
Product: ActiveX PropertyGrid Version 15.0.2
Product: ActiveX Calendar Version 15.0.2
Platform: Windows Vista Business (32bit)
Language: Clarion 7.3
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2011 at 2:02am
Hi PeterG,
 
Probably helps you this snippet (for V15.x)
 
Private Sub CalendarControl1_GetItemText(ByVal ItemParams As XtremeCalendarControl.CalendarGetItemTextParams)
  Dim h         As Holidays
  Dim CacheIdx  As Long
  Dim Ev        As CalendarEvent
   
 If ItemParams.Item = xtpCalendarItemText_DayViewDayHeaderLeft Then
    h = WhatHoliday(ItemParams.ViewDay.Date)
    If h <> Holidays.None Then
      ItemParams.Text = Format$(ItemParams.ViewDay.Date, "ddd, dd.mm.yy") + " (" + GetHolidayName(h) + ")"
    Else
      ItemParams.Text = Format$(ItemParams.ViewDay.Date, "ddd, dd.mm.yy")
    End If
  End If
 
  If ItemParams.Item = xtpCalendarItemText_DayViewDayHeaderCenter Or ItemParams.Item = xtpCalendarItemText_DayViewDayHeaderRight Then
    ItemParams.Text = ""
  End If
End Sub
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6
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.187 seconds.