From 8f351664e61f41b87f312a552ba2e6b53824f4c1 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 10 Feb 2021 17:43:23 +0000 Subject: [PATCH] .upptst git-svn-id: svn://ultimatepp.org/upp/trunk@15754 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- upptst/Switch/Switch.upp | 9 +++++++++ upptst/Switch/main.cpp | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 upptst/Switch/Switch.upp create mode 100644 upptst/Switch/main.cpp diff --git a/upptst/Switch/Switch.upp b/upptst/Switch/Switch.upp new file mode 100644 index 000000000..5872304d3 --- /dev/null +++ b/upptst/Switch/Switch.upp @@ -0,0 +1,9 @@ +uses + CtrlLib; + +file + main.cpp; + +mainconfig + "" = "GUI"; + diff --git a/upptst/Switch/main.cpp b/upptst/Switch/main.cpp new file mode 100644 index 000000000..6073350b5 --- /dev/null +++ b/upptst/Switch/main.cpp @@ -0,0 +1,15 @@ +#include + +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(); +}