Guys,
Using the following code:
I got this (4 months)

But testcal2.prg in samples shows only 1 month which is what I wanted. What's wrong with my code?
p.s. Any documentation on this control? The wiki has an entry but there's no description on its usage. Only syntax is shown.
TIA
Using the following code:
#include "fivewin.ch"
#include "calendar.ch"
#define DS_3DLOOK Â Â Â Â Â 0x0004
#define DS_MODALFRAME Â Â Â 0x80
#define WS_POPUP Â Â Â Â Â Â 0x80000000
#define WS_CHILD Â Â Â Â Â Â 0x40000000
#define WS_MINIMIZE Â Â Â Â 0x20000000
#define WS_VISIBLE Â Â Â Â Â 0x10000000
function pickdate()
 local oDlg, oCal, dDate
 set century on
 set date british
 set epoch to 1980
 dDate := date()
 define dialog oDlg TITLE "Test Calendar" from 0,0 to 300, 300 pixel  ;
  style nOr(DS_MODALFRAME, DS_3DLOOK, WS_POPUP, WS_VISIBLE)
 @ 0,0 CALENDAR oCal VAR dDate OF oDlg PIXEL  ;
       DBLCLICK (msginfo( oCal:GetDate() ), oDlg:end() )     ;
       ON CHANGE msginfo( oCal:GetDate() )
 activate dialog oDlg
return nilI got this (4 months)

But testcal2.prg in samples shows only 1 month which is what I wanted. What's wrong with my code?
p.s. Any documentation on this control? The wiki has an entry but there's no description on its usage. Only syntax is shown.
TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour












