mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@10279 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6b30ec4921
commit
2bb38b8f97
14 changed files with 26 additions and 44 deletions
|
|
@ -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); };
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue