From 96c79e324a07b6c111feec3cbdd4f8fe1dd81652 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 23 Jan 2021 08:54:12 +0000 Subject: [PATCH] .upptst git-svn-id: svn://ultimatepp.org/upp/trunk@15694 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- upptst/LayoutMods/Layout.lay | 9 +++++++++ upptst/LayoutMods/LayoutMods.upp | 10 ++++++++++ upptst/LayoutMods/main.cpp | 13 +++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 upptst/LayoutMods/Layout.lay create mode 100644 upptst/LayoutMods/LayoutMods.upp create mode 100644 upptst/LayoutMods/main.cpp diff --git a/upptst/LayoutMods/Layout.lay b/upptst/LayoutMods/Layout.lay new file mode 100644 index 000000000..7a7b1f7e9 --- /dev/null +++ b/upptst/LayoutMods/Layout.lay @@ -0,0 +1,9 @@ +LAYOUT(TestLayout, 600, 600) + ITEM(Upp::Calendar, dv___0, SwapMonthYear(true).OneButton(true).LeftPosZ(8, 236).TopPosZ(8, 156)) + ITEM(Upp::Clock, dv___1, LeftPosZ(256, 150).TopPosZ(8, 156)) + ITEM(Upp::DropDate, dv___2, SwapMonthYear(true).OneButton(true).NotNull(true).LeftPosZ(8, 104).TopPosZ(176, 19)) + ITEM(Upp::DropTime, dv___3, SwapMonthYear(true).DayEnd(true).TimeAlways(true).NotNull(true).LeftPosZ(256, 120).TopPosZ(176, 19)) + ITEM(Upp::Button, ok, SetLabel(t_("OK")).HCenterPosZ(64, 192).BottomPosZ(8, 24)) + ITEM(Upp::Button, cancel, SetLabel(t_("Cancel")).RightPosZ(8, 64).BottomPosZ(8, 24)) +END_LAYOUT + diff --git a/upptst/LayoutMods/LayoutMods.upp b/upptst/LayoutMods/LayoutMods.upp new file mode 100644 index 000000000..c8f15a8f7 --- /dev/null +++ b/upptst/LayoutMods/LayoutMods.upp @@ -0,0 +1,10 @@ +uses + CtrlLib; + +file + Layout.lay, + main.cpp; + +mainconfig + "" = "GUI"; + diff --git a/upptst/LayoutMods/main.cpp b/upptst/LayoutMods/main.cpp new file mode 100644 index 000000000..9a7b27280 --- /dev/null +++ b/upptst/LayoutMods/main.cpp @@ -0,0 +1,13 @@ +#include + +using namespace Upp; + +#define LAYOUTFILE +#include + +GUI_APP_MAIN +{ + WithTestLayout dlg; + CtrlLayoutOKCancel(dlg, "Test"); + dlg.Execute(); +}