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 » DropTime problem
Re: DropTime problem [message #19564 is a reply to message #19560] Tue, 16 December 2008 13:00 Go to previous messageGo to previous message
Tom1
Messages: 1305
Registered: March 2007
Ultimate Contributor
Hi,

Thanks! Now here's a suggestion: Change code in Core/Convert.cpp as follows:

int ConvertTime::Filter(int chr) const
{
	if(IsDigit(chr) || chr == ' ' || chr == '.' || chr == ':')
		return chr;
	if(chr == ',')
		return '.';
	return CharFilterDate(chr);
}


Time is not only hh:mm:ss, but also contains date in some format. I assume the filter should therefore accept the current date filter characters too.

// Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New SetDate for DateTimeCtrl
Next Topic: Clock small scale
Goto Forum:
  


Current Time: Sun Jul 06 06:20:40 CEST 2025

Total time taken to generate the page: 0.03749 seconds