View Full Version : Month calendar control (cMonthCalendarPrompt)
raveens
11-Nov-2015, 06:10 PM
Hi DAW,
The new Month calendar control (cMonthCalendarPrompt) is amazing!! I can finally retire our custom date-picker which was built for/in VDF7!!
Just a small/minor detail, the following doesn't work.
Set peMouseSelectOk to msoDblClick
Thanks.
raveens
11-Nov-2015, 07:00 PM
Hi DAW,
Found another issue
Using oDemoCalendarControl view, it seems you can only select 3 months max.
Try:
Load oDemoCalendarControl
Enter "01/01/2015" in oFromDate
F4 or Prompt
Resize the dialog to display at least 4 months
Try to highlight pass "31/03/2015" - unable to.
Is this a limitation of the Microsoft control?
Also, If you specifically enter "01/01/2015" in oFromDate and "01/12/2015" in oToDate;
And On pressing prompt on either form, will result in the dialog defaulting to today's date rather than the date specified in the form.
Note: the DateRangeCallback routine needs to as per (minor change):
Procedure DateRangeCallback Integer hoPrompt
Date dDate1 dDate2
Set pbMultiSelect of hoPrompt to True
Set peMouseSelectOk of hoPrompt to msoNone
Set phmPromptUpdateCallback of hoPrompt to (RefProc(DoDateUpdate))
Set pbWeekNumbers of hoPrompt to True
Set pbNoToday of hoPrompt to True
Set pbNoTodayCircle of hoPrompt to True
Get Value of oFromDate to dDate1
Get Value of oToDate to dDate2
Move (dDate1 max dDate2) to dDate2 //@
Set pdSeedValue of hoPrompt to dDate1
Set pdSeedValue2 of hoPrompt to dDate2
End_Procedure
Evertjan Dondergoor
12-Nov-2015, 07:57 AM
Also, If you specifically enter "01/01/2015" in oFromDate and "01/12/2015" in oToDate;
And On pressing prompt on either form, will result in the dialog defaulting to today's date rather than the date specified in the form.
It works for me after I added the line: [Set Form_Datatype to Mask_Date_Window] to the dateforms.
Marcia Booth
18-Nov-2015, 04:35 PM
Using oDemoCalendarControl view, it seems you can only select 3 months max.
[/CODE]
You can configure that by setting piMaxSelectedCount.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.