mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@15694 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
924ce00abc
commit
96c79e324a
3 changed files with 32 additions and 0 deletions
9
upptst/LayoutMods/Layout.lay
Normal file
9
upptst/LayoutMods/Layout.lay
Normal 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
|
||||
|
||||
10
upptst/LayoutMods/LayoutMods.upp
Normal file
10
upptst/LayoutMods/LayoutMods.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
Layout.lay,
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
13
upptst/LayoutMods/main.cpp
Normal file
13
upptst/LayoutMods/main.cpp
Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue