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@12316 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6f46e77458
commit
c6987045f8
4 changed files with 44 additions and 0 deletions
17
upptst/LabelBox/LabelBox.h
Normal file
17
upptst/LabelBox/LabelBox.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef _LabelBox_LabelBox_h
|
||||
#define _LabelBox_LabelBox_h
|
||||
|
||||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define LAYOUTFILE <LabelBox/LabelBox.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
class MyApp : public WithLabelBoxLayout<TopWindow> {
|
||||
public:
|
||||
typedef MyApp CLASSNAME;
|
||||
MyApp();
|
||||
};
|
||||
|
||||
#endif
|
||||
5
upptst/LabelBox/LabelBox.lay
Normal file
5
upptst/LabelBox/LabelBox.lay
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
LAYOUT(LabelBoxLayout, 340, 252)
|
||||
ITEM(LabelBox, dv___0, SetLabel(t_("Standard")).LeftPosZ(4, 324).TopPosZ(4, 36))
|
||||
ITEM(LabelBox, dv___1, SetLabel(t_("Magenta")).SetInk(LtMagenta).LeftPosZ(4, 324).TopPosZ(44, 36))
|
||||
END_LAYOUT
|
||||
|
||||
11
upptst/LabelBox/LabelBox.upp
Normal file
11
upptst/LabelBox/LabelBox.upp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
LabelBox.h,
|
||||
main.cpp,
|
||||
LabelBox.lay;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
11
upptst/LabelBox/main.cpp
Normal file
11
upptst/LabelBox/main.cpp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "LabelBox.h"
|
||||
|
||||
MyApp::MyApp()
|
||||
{
|
||||
CtrlLayout(*this, "Window title");
|
||||
}
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
MyApp().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue