Print Page | Close Window

[SOLVED]SwitchToDayViewIfPickedSingleDay

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=23136
Printed Date: 21 November 2024 at 9:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED]SwitchToDayViewIfPickedSingleDay
Posted By: Carlos Rocha
Subject: [SOLVED]SwitchToDayViewIfPickedSingleDay
Date Posted: 19 September 2016 at 10:09am
Doesn't work if the current selection in date picker is a WorkWeek. The only way to change to single day is by switching to full week or month view and then clicking a day.
I think the evil comes from the fact that the calendar view faultomatically force WorkWeekView when the selection is exactly from Monday to Thursday. It works as expected for every other kind of selection.

Can any soul please point me in the right direction to get around this?

Thanks


-------------
SuitePro 20.3.0
OS: Windows 10
Language: Visual Objects 2.8



Replies:
Posted By: Carlos Rocha
Date Posted: 19 September 2016 at 4:24pm
Ok, I managed to get around it.

Instead of using WorkWeekMask, use BeforeDrawThemeObject event to set the BackgroundColor to the color used for NonWorkCell if the day is Saturday or Sunday.


-------------
SuitePro 20.3.0
OS: Windows 10
Language: Visual Objects 2.8



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