FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Multiple calendars on one dialog
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Multiple calendars on one dialog
Posted: Fri Dec 06, 2013 07:12 PM
To All

I am working on a project that requires a calendar and I would like to have one dialog that chains 12 calendars together .. I have looked at the samples TestCal.prg ..
Code (fw): Select all Collapse
// Start Calendar 2
              
   @ 250, 001 CALENDAR oCal2 VAR dDate3, dDate4 OF oWnd PIXEL MULTISELECT DAYSTATE;
              DBLCLICK MsgInfo( oCal2:GetDate() ) SIZE 550, 170 COLOR CLR_BLACK, CLR_HRED

It appears this is the multiple calendar line which creates 3 calendars .. I see nothing above that sets the number of calendars other than MULTISELECT...

I would like to be able to create a .rc with 12 calendars and be able to chain the results together to evaluate a single date picked from any calendar.

Any suggestions are welcome.

Rick Lipkin
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Multiple calendars on one dialog
Posted: Mon Dec 09, 2013 02:45 AM

It depends purely on the control's size Rick.

See viewtopic.php?f=3&t=27516

The wiki entry for calendar was also recently updated to reflect this - http://wiki.fivetechsoft.com/doku.php?i ... s_calendar

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Multiple calendars on one dialog
Posted: Mon Dec 09, 2013 02:01 PM

Hua

Thank you for your answer .. I will be looking at this topic again soon and test your suggestions.

Rick Lipkin

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Multiple calendars on one dialog
Posted: Wed Dec 11, 2013 12:53 AM
I added a POPUP to select a year, because of the get-problem ( year )
A left mouseclick somewhere inside the title of the first calendar-row, opens the year-selection.
After a selection, It will be closed automatically.
The popup is created as a VTITLE with shadow and animated buttons.



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion