mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
30 lines
532 B
C++
30 lines
532 B
C++
#include "DateFmtCtrl.h"
|
|
|
|
void DateFmtCtrl::Print()
|
|
{
|
|
text = AsString(~date);
|
|
}
|
|
|
|
void DateFmtCtrl::Language()
|
|
{
|
|
SetLanguage(~lang);
|
|
Print();
|
|
}
|
|
|
|
DateFmtCtrl::DateFmtCtrl()
|
|
{
|
|
CtrlLayout(*this, "Window title %d");
|
|
lang.Add(LNG_('E','N','U','S'), "ENUS");
|
|
lang.Add(LNG_('C','S','C','Z'), "CSCZ");
|
|
date <<= THISBACK(Print);
|
|
lang <<= THISBACK(Language);
|
|
date = GetSysDate();
|
|
Print();
|
|
}
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
SetDateFormat("%4:DAY %3:02d.%2:month.%1:02.2d");
|
|
DUMP(GetSysDate());
|
|
DateFmtCtrl().Run();
|
|
}
|