Print Page | Close Window

Select AllDay area by code?

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=23141
Printed Date: 04 December 2024 at 3:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Select AllDay area by code?
Posted By: Carlos Rocha
Subject: Select AllDay area by code?
Date Posted: 24 September 2016 at 5:01pm
Hi,

I couldn't find a way so select AllDay area by code. Is it possible at all?

Thanks


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



Replies:
Posted By: olebed
Date Posted: 25 September 2016 at 6:57am
Hello Carlos,

   Dim dateTimeBegin, dateTimeEnd As Date
   dateTimeBegin = #9/23/2016#
   dateTimeEnd = #9/23/2016 11:59:59 PM#
   
   CalendarControl.ActiveView.Selection.Begin = dateTimeBegin
   CalendarControl.ActiveView.Selection.End = dateTimeEnd
   'or
   CalendarControl.ActiveView.SetSelection dateTimeBegin, dateTimeEnd, True

Regards,
 Oleksandr Lebed


Posted By: Carlos Rocha
Date Posted: 25 September 2016 at 10:24am
Thank you Oleksandr, but it does not work.

I should say that I don't use VB6, but I can work with OLE time.
I need this to allow full keyboard navigation within the calendar and this is the only thing I still couldn't put to work.

Setting Begin = 2016-09-25 00:00:00 and End = 2016-09-25 23:59:59, and calling CalendarControl.ActiveView.SetSelection Begin, End, True moves the selection to the day before with a single the cell selected, 23:00:00 to 23:30:00.

EDIT:
by using Selection instead of SetSelection the selected cell is still 23:00 to 23:30 but the day doesn't change.


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


Posted By: Carlos Rocha
Date Posted: 25 September 2016 at 2:13pm
I give up after two days fighting it.
Thanks for trying anyway


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


Posted By: Florent H.
Date Posted: 04 December 2017 at 3:48am
Hi everyone,

I'm using the calendar active X with Wonderware Indusoft.
I'm trying to select all the event for the full day week displayed on the screen but I cann't do it.

At the moment, the calender user can select all the event by using CTRL+click and then, he press on the copy button that I have added.
I would like to add a "Select all event" button.
Can you help me please ?

Thanks




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