Multiple calendars on one dialog

Multiple calendars on one dialog

Postby Rick Lipkin » Fri Dec 06, 2013 7: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: Select all  Expand view

// 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
User avatar
Rick Lipkin
 
Posts: 2633
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Multiple calendars on one dialog

Postby hua » Mon Dec 09, 2013 2: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
hua
 
Posts: 1047
Joined: Fri Oct 28, 2005 2:27 am

Re: Multiple calendars on one dialog

Postby Rick Lipkin » Mon Dec 09, 2013 2:01 pm

Hua

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

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2633
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Multiple calendars on one dialog

Postby ukoenig » 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.

Image

best regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests