Print Page | Close Window

problems with DatePicker

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=6225
Printed Date: 06 October 2024 at 1:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: problems with DatePicker
Posted By: mario.painsi
Subject: problems with DatePicker
Date Posted: 25 January 2007 at 10:55am

Hello !

We have problems to attach the Datepicker to the Calender.

when we say Call DatePicker.AttachToCalendar( Object ), he want a object (DCalendar_Control).
But our Calendar is not a DCalendar_Control.
 
What can we do to attach the datepicker to the calendar ?
 
thanks for your help.



Replies:
Posted By: sserge
Date Posted: 25 January 2007 at 5:09pm
Hi Mario,

It depends on the environment which you do use. In some languages your DatePicker is not a regular COM object, but a kind of a wrapper on it built by the environment.

In such a case you have to write something like:

Call DatePicker.AttachToCalendar( CalendarObject.Object )


--
WBR,
Serge


Posted By: jprescott
Date Posted: 29 January 2007 at 10:24am
i'm still having this problem as well in Progress, although most of the other issues you have cleared up (so thanks serge!)
 
the message coming back states "No such interface is supported" i've tripled checked everything and most of the other stuff i've gotten to work - but what's strange is that this worked with the evaluation version of the ocx's.


Posted By: jprescott
Date Posted: 29 January 2007 at 10:26am
is there a work around?
 
maybe an onclick command that will change the date in the calendar from the datepicker?


Posted By: jprescott
Date Posted: 30 January 2007 at 3:06am
got a work around sorted
 
in the onclick of datepicker
 
DEF VAR vdate AS DATE NO-UNDO.
vdate = chdatepicker:datepicker:SELECTION(0):datebegin.
 
chcalendarcontrol:calendarcontrol:dayview:showday(STRING(vdate),TRUE).
 


Posted By: minnen
Date Posted: 19 March 2007 at 1:12pm
jprescott,
 
I know this is not the right forum. But have you tried to get the panes working in progress?



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