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 #19568 is a reply to message #19567] Tue, 16 December 2008 17:14 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
Tom1 wrote on Tue, 16 December 2008 20:38

Although your workaround seems smart indeed, I prefer simply having it fixed in the Core, since then everybody using the control can have a working solution by default.

But thanks anyway!

// Tom

I can suggest another more simple solution:
class ConvertDateTime : public ConvertTime
{
public:
	virtual int Filter(int chr) const
	{
		int c = CharFilterDate(chr);

		if (c != 0) return c;
		else return ConvertTime::Filter(chr);
	}
};

Then use ConvertDateTime with DropTime (e.g. dropTime) as follows:
dropTime.SetConvert(Single<ConvertDateTime>());


Also you can see SetFilter function of DropTime.

[Updated on: Tue, 16 December 2008 18:25]

Report message to a moderator

 
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 20:07:51 CEST 2025

Total time taken to generate the page: 0.03596 seconds