Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Date and DateTime Picker Classes
Message
From
02/07/2001 07:17:37
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00525245
Message ID:
00525799
Views:
20
Hi Sergey,

Password was: datepick
Had to password the file due to the CDC firewall, but I believe Nick has removed the password from the zip file.

No, I did not do anything with the GetDayBold event on the MonthView control. It's pretty flexible though. The MonthView control is sub-classed in the prgs MonthView.prg and MonthViewDateTime.prg ( for VFPDateTimePicker class ). You should be able to modify them to get functionality then hook properties/events in like I have done. The code should be reasonably well documented so you can figure out what I am doing and extend the functionality.

Bill

>Hi Bill,
>
>I just downloaded DatePick.zip but couldn't unzip it because it's asking for password.
>
>BTW, did you ever used GetDayBold event of the MonthView control?
>
>>For those interested, I have submitted an updated version of the DatePick.zip file to the UT web masters with some modifications. It was noted to me that MS KB article Q192693 indicates a problem instantiating ActiveX controls at run-time using the AddObject() method. The workaround according to MS is to add the control at design time or sub-class the control in code and instantiate the object using the NewObject() method. Since the MonthView control was being instantiated using AddObject(), this would be a problem. Since I already sub-class the control in the PRG's MonthView.prg and MonthViewDateTime.prg to get some functionality I needed, I have changed the AddObject() calls to NewObject() calls.
>>
>>It was also noted that the use of CREATEOBJECT() in the code could be changed to NewObject() to eliminate the need for SET CLASSLIB/RELEASE CLASSLIB statments. I have implemented this also.
>>
>>The DatePick.zip file now also contains a modification history log table, Updates.dbf, which can be opened to see all the details, locations, etc. regarding these modifications. The modified code is included in this table so if changes have already been made to the classes, overwriting of the class files is not necessary. The specific code changes can be copied from the Updates table and pasted into the appropriate class method.
>>
>>My thanks to Rip Ryness for pointing out these issues to me.
>>
>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform