Skip to main content

[Migrated content. Thread originally posted on 13 January 2005]

Is there a way to pop up just the calendar portion of the date control on the screen.

I need to be able to evaluate an entry field for valid data and if it is not valid, I need to be able to pop up the calender portion of a date control so the user can select a valid date from that control, then pass that back so the valid date information could be displayed.

If there is a windows API call that would pop up the calender and return the value selected, that would work as well. Then I could just defined a push button to make the same call.

[Migrated content. Thread originally posted on 13 January 2005]

Is there a way to pop up just the calendar portion of the date control on the screen.

I need to be able to evaluate an entry field for valid data and if it is not valid, I need to be able to pop up the calender portion of a date control so the user can select a valid date from that control, then pass that back so the valid date information could be displayed.

If there is a windows API call that would pop up the calender and return the value selected, that would work as well. Then I could just defined a push button to make the same call.
If I understand you right, you want to pop up a monthview?

You can do that with the MonthView control in MSCOMCT2 control library that is a part of the distribution of 6.2.

[Migrated content. Thread originally posted on 13 January 2005]

Is there a way to pop up just the calendar portion of the date control on the screen.

I need to be able to evaluate an entry field for valid data and if it is not valid, I need to be able to pop up the calender portion of a date control so the user can select a valid date from that control, then pass that back so the valid date information could be displayed.

If there is a windows API call that would pop up the calender and return the value selected, that would work as well. Then I could just defined a push button to make the same call.
For anybody interested, here is the program I came up with to utilize the MonthView control. This program displays a floating window with the MonthView screen.
You can look at the linkage file for the paramaters passed to the program.
It will allow you to set a future date or history date parameter and that controls if the user can select or click on a date that is not valid. If the user presses the Escape key, it will return a date of all zeros, so you can react to that as well.

Feel free to use this program and if you have ideas or ways to better enhance it, let the users of this forum (especially me) know.