.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@10279 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-10-09 11:02:07 +00:00
parent 6b30ec4921
commit 2bb38b8f97
14 changed files with 26 additions and 44 deletions

View file

@ -6,14 +6,8 @@ using namespace Upp;
#include <CtrlCore/lay.h>
struct MyApp1 : public TopWindow {
typedef MyApp1 CLASSNAME;
Switch s;
void Change(){
PromptOK("Switched to value " + AsString(~s));
}
MyApp1() {
Title("Switch example");
Add(s);
@ -24,7 +18,7 @@ struct MyApp1 : public TopWindow {
s.Add("Something", "Another case");
s.DisableValue(12);
s <<= 13.5;
s <<= THISBACK(Change);
s << [=] { PromptOK("Switched to value " + ~~s); };
}
};