FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour About TCalendar
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM
Re: About TCalendar
Posted: Wed Dec 30, 2020 08:33 AM
I see, it works only on Vista and later, are you trying with win 7? see requirement section on https://docs.microsoft.com/en-us/windows/win32/api/commctrl/nf-commctrl-monthcal_sizerecttomin. It is a shame,
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: About TCalendar
Posted: Wed Dec 30, 2020 10:41 AM
Antonino,

We have modified methods New() and Initiate() using this code:

Code (fw): Select all Collapse
   aRect = MonthCal_GetMinReqRect( ::hWnd )
   SetWindowPos( ::hWnd, 0, ::nLeft, ::nTop, ;
                 Max( ::nWidth, aRect[ 4 ] ) - ( ::nLeft * 2 ), ;
                 aRect[ 3 ], nOr( SWP_NOZORDER, SWP_NOMOVE ) )


many thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion