Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - CXTPDatePickerControl not showing specified date
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPDatePickerControl not showing specified date

 Post Reply Post Reply
Author
Message
JasonLi View Drop Down
Newbie
Newbie


Joined: 02 May 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote JasonLi Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDatePickerControl not showing specified date
    Posted: 02 May 2011 at 10:22am
I want to initialize CXTPDatePickerControl to show specified date selected, which means that date picker shows one selected specified date once when it pops up. But only today's date is selected when it pops up. I have tried all provided functions to implement this without luck.

Is it possible to get this done?

The other question: Is it possible to navigate by year instead of only by month in date picker?
Back to Top
JasonLi View Drop Down
Newbie
Newbie


Joined: 02 May 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote JasonLi Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 2011 at 10:16am
Let me answer my own questions:

1. about default date, CXTPDatePickerContrl only shows today's date as default. I have a workaround for this: calculate month difference between specified date and today's date, use ScrollLeft or ScrollRight function to show the specified date as default.

2. CXTPDatePickerControl is only able to be navigated by month, not by year, which is not user friendly.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.