Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Select AllDay area by code?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Select AllDay area by code?

 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: Select AllDay area by code?
    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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
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: 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
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: 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
Back to Top
Florent H. View Drop Down
Newbie
Newbie
Avatar

Joined: 04 December 2017
Location: Niort
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Florent H. Quote  Post ReplyReply Direct Link To This Post 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

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.160 seconds.