Home » U++ Library support » CalendarCtrl » Calendar does not update month/year on 'gray'-number selection
Calendar does not update month/year on 'gray'-number selection [message #48722] |
Tue, 29 August 2017 13:25 |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
Am using Calendar in a Layout and found that it does not
move the month or year forward or backward if one of the
grayed numbers are clicked.
I 'fixed' it by adding 'UpdateFields()' in DateTimeCtrl.cpp line 281
in the function:
void Calendar::LeftDown(Point p, dword keyflags)
{
...
if(PopUpCtrl::IsPopUp())
{
sel = tm;
Deactivate();
WhenAction();
}
else
{
UpdateFields(); /*<<<---added here */
sel = tm;
WhenAction();
if(refall)
{
view.day = 0;
Refresh();
...
...
}
|
|
|
Goto Forum:
Current Time: Fri Apr 25 21:30:28 CEST 2025
Total time taken to generate the page: 0.00993 seconds
|