DatePicker Control not changing? |
Post Reply |
Author | |
KumarCJ
Groupie Joined: 02 April 2007 Location: India Status: Offline Points: 96 |
Post Options
Thanks(0)
Posted: 06 December 2012 at 2:39am |
Hi,
I come across issue with Date Picker Control. We have calendar view and date piker view and also using CXTPCalendarController class. We have implementation like below 1. When calendar view open it displayed today's date on Calendar view and also on Date Picker view. 2. We have trapped "Ctrl+PageUp" key which will move the calendar view to 1 year back. 3. We have trapped "Ctrl+PageDown" key which will move the calendar view to 1 year forward. Issue we are facing is that -- When do "Ctrl+PageUp"the calendar view goes to 1 year back and display the date on the toolbar properly BUT Date Picker View do not display the calendar of 1 year back. -- Please see the attached screen shot uploads/2903/DatePickerControl_not_changing_with_respect_to_view_data.zip -- We are trying with below CXTPDatePickerControl* pDatePicker = pFrameChild->m_CalendarController.GetDatePicker(); if (pDatePicker) { CXTPCalendarView* pView = GetCalendarCtrl().GetActiveView(); oleSelectedDate = JDateToOleDateTime(CalSelectedDate, 0); pDatePicker->Select(oleSelectedDate); pFrameChild->m_CalendarController.SetDatePicker(pDatePicker); pDatePicker->RedrawControl(); } Please let me know if any thing I am missing or any other way to do this! Thanks, Saket Kumar |
|
-- Saket Kumar
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |