Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - FirstVisibleDay/LastVisibleDay for CalendarControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

FirstVisibleDay/LastVisibleDay for CalendarControl

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: FirstVisibleDay/LastVisibleDay for CalendarControl
    Posted: 18 January 2008 at 6:34pm
Hi,

I would like to know if there is an equivalent to the DatePicker FirstVisibleDay and LastVisibleDay properties for the CalendarControl?

The reason I ask is that I don't want the default behaviour of the DatePicker control when attached to a calendar, as the user can select ranges and then it switches the ViewType for the calendar. I would like to allow the user to be able to select only one date in the DatePicker, and then if the calendar is in MonthView, then the DatePicker highlights the month range that is visible on the CalendarControl. If the calendar is in Week view, then the DatePicker highlights the visible week. If I could access the FirstVisibleDay and LastVisibleDay for a CalendarControl then I could enforce my desired behaviour manually.

Thanks.
Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2008 at 12:39pm
FirstDate = xtremeCalendar.activeView.Days(0).Date
 
LastDay = xtremeCalendar.activeView.DaysCount
 
LastDate = xtremeCalendar.activeView.Days(LastDay-1).Date
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.141 seconds.