Home » U++ Library support » CalendarCtrl » DropTime problem
Re: DropTime problem [message #19568 is a reply to message #19567] |
Tue, 16 December 2008 17:14   |
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
|
|
|
Goto Forum:
Current Time: Sun Jul 06 20:07:51 CEST 2025
Total time taken to generate the page: 0.03596 seconds
|