Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - [SOLVED]SwitchToDayViewIfPickedSingleDay
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED]SwitchToDayViewIfPickedSingleDay

 Post Reply Post Reply
Author
Message
Carlos Rocha View Drop Down
Groupie
Groupie


Joined: 11 February 2008
Location: Portugal
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote Carlos Rocha Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED]SwitchToDayViewIfPickedSingleDay
    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
Back to Top
Carlos Rocha View Drop Down
Groupie
Groupie


Joined: 11 February 2008
Location: Portugal
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote Carlos Rocha Quote  Post ReplyReply Direct Link To This Post 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
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.250 seconds.