mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@11747 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c8738f24a3
commit
cdc260c692
3 changed files with 30 additions and 0 deletions
10
reference/OptionBox/OptionBox.upp
Normal file
10
reference/OptionBox/OptionBox.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp,
|
||||
test.lay;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
13
reference/OptionBox/main.cpp
Normal file
13
reference/OptionBox/main.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define LAYOUTFILE <OptionBox/test.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
WithTestLayout<TopWindow> dlg;
|
||||
CtrlLayoutExit(dlg, "Test");
|
||||
dlg.Run();
|
||||
}
|
||||
7
reference/OptionBox/test.lay
Normal file
7
reference/OptionBox/test.lay
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
LAYOUT(TestLayout, 232, 92)
|
||||
ITEM(OptionBox, dv___0, AutoBox(true).SetLabel(t_("Autodisabling OptionBox")).LeftPosZ(8, 216).TopPosZ(8, 48))
|
||||
ITEM(Button, dv___1, SetLabel(t_("Some button")).LeftPosZ(16, 96).TopPosZ(28, 20))
|
||||
ITEM(Option, dv___2, SetLabel(t_("Some option")).LeftPosZ(116, 100).TopPosZ(28, 20))
|
||||
ITEM(Button, exit, SetLabel(t_("Close")).LeftPosZ(156, 68).TopPosZ(64, 20))
|
||||
END_LAYOUT
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue