XTPDatePicker view change notify |
Post Reply |
Author | |
Moritz
Groupie Joined: 22 December 2005 Location: Germany Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 10 April 2006 at 11:35am |
Hello Codejock-team. I needed a month-viewchange-notification of the CXTPDatePickerControl. I added and to "XTPDatePickerControl.h" the last 2 lines: { //CWaitCursor wc; // cleanup old month arrayClearMonths(); // add all month items in the grid to the array // and set first month and last month defaultsCreateMonthArray(); // INFO: Added von Moritz // redraw control image if (!m_rcControl.IsRectEmpty())AdjustLayout(m_rcControl); _RedrawControl(FALSE); SendNotification(XTP_NC_DATEPICKERMONTHCHANGED); SendMessageToParent(XTP_NC_DATEPICKERMONTHCHANGED); } now I am able to catch if the user scrolls through the DateTimePicker and I can refresh my fontmaps to show special days in special colors but not to refresh the calendar. But now I saw that release 10.01 is out, and if I update my changes are lost, so I suggest to add this feature to the 10 release. Maybe other people might need it too. It would also be very nice to have some improvements to the DAYMETRICS-Callback function: |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Thanks, will consider those additions for further releases.
-- WBR, Serge |
|
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 |