Calendar Version 3.3 March 28, 1995 Calendar is a PDOXWIN 5.0 Form which presents a calendar to the screen. This is the third version of the form. The user can use a mouse or keys to change to date. The form return a string with the last selected date (format mm/dd/yy or null "" if cancel is pressed). You can pass the form a date as the default for the display each time you activate the calendar form. This allows the calendar to be more useful and flexible as a data entry tool. In order to setup the default date, I used the "readprofilestring and writeprofilestring" to pass parameters. I have found this form very useful when an application requires the entry of a date. The form is openned in dialog mode thus securing it from accidently being closed. Also included is an example of loading the Calendar Form and using its output. The Loadtst form also has source and is written in PDOXWIN 5.0. Added Features: 3.1 Method to pass date to calendar form as default date instead of today's date Mouse cursor changes to wait on long tasks 3.3 Improved performance. All methods and procedures are attached to the page object which makes copying the code and using it in other forms very handy. How to use: For mouse use just click on the different objects (number in the month, or the buttons). If you click on "Cancel" then the form returns a string of "" (null). If you click on done then the form returns the date selected (mm/dd/yy). If you double click on a number of the month, the date is set to that object and the form returns the string mm/dd/yy. For key use the follow applies: Use the arrow keys to increase or decrease the date (left and right increase and decrease the date by one, the up and down decrease and increase the date by 7). Use the Pageup and PageDown to decrease or increase the month by 1. Use the Tab key to highlight different buttons. Use the enter key to press the highlighted button. Use the ESC key to quit. To pass a default date to the form you put the following in: writeProfilestring(winDir+"\\cal.ini", title, "date", datevalue) ; save date mm/dd/yy for calendar program writeProfilestring(winDir+"\\cal.ini", title, "Signature", string(time())) ; set new signature calendar.show() ; code to show calendar form I am using the file "CAL.INI" to pass parameters to the calendar form. The signature parameter allows me to determine if you want to use the last set date in the form or you want to set a new date. The calendar form check the siganture against the last known signature if they are different it uses the date parameter in the CAL.INI file to set the starting date. If the signatures are the same then whatever the last date selected will appear. Source is provided for users of other versions. If you use calendar for application development there is a one-time fee of $25 and you must give credit to author in your credit, documentation, etc. Please contact me at Compuserve 76176,1543. This is not freeware. Also comments, critisms, etc. are appreciated, please send them to Keith Riddell Compuserve 76176,1543 Thanks and enjoy. copyright copy pending 1994