mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
commit
263ff5f895
2665 changed files with 642923 additions and 0 deletions
20
examples/Days/main.cpp
Normal file
20
examples/Days/main.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "Days.h"
|
||||
|
||||
void Days::Compute()
|
||||
{
|
||||
result = IsNull(date1) || IsNull(date2) ? "" :
|
||||
Format("There is %d day(s) between %` and %`", abs(Date(~date1) - Date(~date2)), ~date1, ~date2);
|
||||
}
|
||||
|
||||
Days::Days()
|
||||
{
|
||||
CtrlLayout(*this, "Days");
|
||||
date1 <<= THISBACK(Compute);
|
||||
date2 <<= THISBACK(Compute);
|
||||
Compute();
|
||||
}
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
Days().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue