home *** CD-ROM | disk | FTP | other *** search
- COMPUTER SIMPLE DATE PICKER (CSDTPCKR)
-
- Written by Robert Walker
- for Computer Simple, Inc.
-
- --------------------------------------------------------
- The CSDTPCKR is a Data-Aware, sub-classed version of the
- date picker included in Microsoft's Comctl32.dll.
-
- This source code was written using Microsoft
- Visual Basic version 5.
-
- The CSDTPCKR also uses the following Windows
- System Libraries:
- - Comctl32.dll
- - User32.dll
- - kernel32.dll
- - oleaut32.dll
-
- --------------------------------------------------------
- Additional information about CSDTPCKR:
-
- In run-mode, the user can right-click on the control
- to toggle between Spin-Button and DropDown mode to select
- dates (timepick only allows spin button editing. The
- initial state of the control can be set to spin-button/dropdown
- by setting the UPDOWN Property.
-
- In run-mode, using the Shift-Arrow, "+", and "-" keys
- allows you to change the date in the text box without
- using the drop-down calendar or spin-button.
-
- The CSDTPCKR initially shows the current date in the
- text area however the value property is "empty" until
- a date is actually picked by either using the drop-down
- calendar, the spin-button or the keyboard.
-
- If IsEmpty(CSCal1.Value) Then
- Debug.Print Date
- Else
- Debug.Print CSCal1.Value
- End If
-
- The CSDTPCKR can be used as a TIMEPICKER by changing the
- TIMEPICK property to TRUE.
-
- --------------------------------------------------------
- Additional properties obtained by sub-classing:
-
- AlignRight - Changes the alignment of the drop-down Calendar
- BackColor - The background color of the drop-down Calendar
- FirstDayOfWeek - Changes the first day of the week in the Calendar
- Font - Changes the font for the text box and the Calendar
- Max and Min - Sets limits on navigation in Calendar
- ShowToday - Shows a circle on today's date in the calendar
- ShowWeeks - Shows the weeks of the year in the calendar
- TextColor - Color of text for displaying the dates for the current month.
- TimePick - Determine whether the control will be used to pick times or dates.
- TitleBackColor - Color of the background displayed in the dropdown title bar
- TitleTextColor - Color of the font to display the month/year at the top of the calendar
- TrailTextColor - Color of the font for leading and trailing dates.
- UpDown - Displays a spin-button to change the dates in the text box
-
-
-
-
-