git-svn-id: svn://ultimatepp.org/upp/trunk@15754 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-02-10 17:43:23 +00:00
parent acf2689784
commit 8f351664e6
2 changed files with 24 additions and 0 deletions

9
upptst/Switch/Switch.upp Normal file
View file

@ -0,0 +1,9 @@
uses
CtrlLib;
file
main.cpp;
mainconfig
"" = "GUI";

15
upptst/Switch/main.cpp Normal file
View file

@ -0,0 +1,15 @@
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
TopWindow win;
Switch sw;
sw.Add("one");
sw.Add("two");
sw.Add("three");
sw.DisableCase(1);
win.Add(sw.SizePos());
win.Run();
}