ultimatepp/examples/Days/main.cpp
cxl 5ae89ac024 .examples
git-svn-id: svn://ultimatepp.org/upp/trunk@10696 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-01-11 19:38:35 +00:00

15 lines
284 B
C++

#include "Days.h"
Days::Days()
{
CtrlLayout(*this, "Days");
date1 ^= date2 ^= [=] {
result = IsNull(date1) || IsNull(date2) ? "" :
Format("There is %d day(s) between %` and %`", abs(Date(~date1) - Date(~date2)), ~date1, ~date2);
};
}
GUI_APP_MAIN
{
Days().Run();
}