ultimatepp/uppdev/ValueSwitch/main.cpp
cxl 2e4b276e07 Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:34:39 +00:00

19 lines
322 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
TopWindow win;
Switch h;
h.Add("One", "One");
h.Add("Two", "Two");
h.Add("Three", "Three");
h.EnableValue("One", false);
h.EnableValue("Two", false);
win.Add(h.SizePos());
win.Run();
h.EnableValue("Two", true);
win.Run();
}