git-svn-id: svn://ultimatepp.org/upp/trunk@15694 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-01-23 08:54:12 +00:00
parent 924ce00abc
commit 96c79e324a
3 changed files with 32 additions and 0 deletions

View file

@ -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

View file

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

View file

@ -0,0 +1,13 @@
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <LayoutMods/Layout.lay>
#include <CtrlCore/lay.h>
GUI_APP_MAIN
{
WithTestLayout<TopWindow> dlg;
CtrlLayoutOKCancel(dlg, "Test");
dlg.Execute();
}