mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.examples
git-svn-id: svn://ultimatepp.org/upp/trunk@10696 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8d7a331cf9
commit
130203969b
6 changed files with 14 additions and 13 deletions
4
examples/AnimatedHello/init
Normal file
4
examples/AnimatedHello/init
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef _AnimatedHello_icpp_init_stub
|
||||
#define _AnimatedHello_icpp_init_stub
|
||||
#include "CtrlLib/init"
|
||||
#endif
|
||||
|
|
@ -10,8 +10,6 @@ using namespace Upp;
|
|||
|
||||
class Days : public WithDaysLayout<TopWindow> {
|
||||
public:
|
||||
void Compute();
|
||||
|
||||
typedef Days CLASSNAME;
|
||||
Days();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
description "Displays a number of days between two dates";
|
||||
description "Displays a number of days between two dates\377";
|
||||
|
||||
uses
|
||||
CtrlLib;
|
||||
|
|
|
|||
|
|
@ -1,17 +1,12 @@
|
|||
#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();
|
||||
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
|
||||
|
|
|
|||
4
examples/HelloWorld/init
Normal file
4
examples/HelloWorld/init
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef _HelloWorld_icpp_init_stub
|
||||
#define _HelloWorld_icpp_init_stub
|
||||
#include "CtrlLib/init"
|
||||
#endif
|
||||
|
|
@ -38,6 +38,6 @@ file
|
|||
Test.iml;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI",
|
||||
"" = "GUI MT",
|
||||
"" = "GUI";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue