Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Problem to create event when i m in week view
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem to create event when i m in week view

 Post Reply Post Reply
Author
Message
Pasm View Drop Down
Newbie
Newbie


Joined: 03 April 2009
Location: Belgium
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pasm Quote  Post ReplyReply Direct Link To This Post Topic: Problem to create event when i m in week view
    Posted: 03 April 2009 at 2:09am
Hello all,

I have a little problem with the OCX version 13, when i am in Week view and i want to create a new appointment with a doubleclick on a day in the middle of the week, a false date is return, in fact the first day of the week is return each time

I use this code :

dDatum is Date = gcDatePicker:DateGetBegin()
hTbegin is Time = gclAgenda:WDTime(AX_Calendar>>ActiveView>>Selection>>Begin)
hTend is Time = gclAgenda:WDTime(AX_Calendar>>ActiveView>>Selection>>End)

Procedure DateGetBegin()
dOffset is Date = "18991230"
pautBlock is object Automation dynamic = :m_pautXDatePicker>>Selection>>Blocks[0]
RETURN = :WDDate(pautBlock>>DateBegin)



Because i dont have find the Methods/Property/Events in the Calendar Control to return the date in creation mode, then i must use the DatePicker control with the property DateBegin.

This code work good when i'm in Day view but not when i m week view or Month view.

Whre i m wrong ? How tu use a return date value directly from the calendar Control when i'm in creation mode of a appointment ?

Thanks in advance.


Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 08 April 2009 at 4:40pm
Can not confirm - it works in MFC and VB app - tested right now. What do you see in your Event Editor? Should be Start and End picker with date of click cell
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.