Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 is currently offline  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();
			...
	...
}

Previous Topic: SetEditable option not working in Calendar
Next Topic: Calendar "Today:" date field format
Goto Forum:
  


Current Time: Fri Mar 29 12:12:55 CET 2024

Total time taken to generate the page: 0.01410 seconds