Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - DatePicker Control not changing?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DatePicker Control not changing?

 Post Reply Post Reply
Author
Message
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post Topic: DatePicker Control not changing?
    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
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.