Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - DatePicker selection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DatePicker selection

 Post Reply Post Reply
Author
Message
WaaZ View Drop Down
Senior Member
Senior Member


Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaaZ Quote  Post ReplyReply Direct Link To This Post Topic: DatePicker selection
    Posted: 19 February 2006 at 6:49am

Hi,

According to the helpfile, there should be an attribute called Block under DatePicker.Selection, where Selection is a DatePickerSelection.

This is a very urgent matter as we are approaching deadline and it is a blocking factor for us. We need to be able to read the date range from a datepicker.

We are using C# and visual Studio 2005

Thanks

WaaZ

Back to Top
TracyP View Drop Down
Groupie
Groupie


Joined: 16 February 2006
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote TracyP Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2006 at 9:47am
I have found the DatePicker needs to be attached to the calendar before the populate for the Selection.BlocksCount to be greater than 0.
I have also seen it does not update with the calendar in the ViewChanged or SelectionChanged events. It happens after.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2006 at 11:43am
Hi,

Access it as an array:

DateTime dt1;
dt1 = axDatePicker1.Selection[0].DateBegin;


--
WBR,
Serge
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2006 at 11:47am
Tracy,

1) For BlocksCount to be greater than 0 you just need to select something.

2) When DatePicker is connected to the Calendar control, a special object is responsible for theirs synchronisation which is called CalendarController. It is hidden for ActiveX, but you can easily read some docs on its C++/MFC version. It catches notifications from both those controls and synchronizes data between them. So far, visual synchronization will be slightly after an event.

--
WBR,
Serge
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.172 seconds.