git-svn-id: svn://ultimatepp.org/upp/trunk@12316 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-09-27 21:05:25 +00:00
parent 6f46e77458
commit c6987045f8
4 changed files with 44 additions and 0 deletions

View 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

View 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

View file

@ -0,0 +1,11 @@
uses
CtrlLib;
file
LabelBox.h,
main.cpp,
LabelBox.lay;
mainconfig
"" = "GUI";

11
upptst/LabelBox/main.cpp Normal file
View file

@ -0,0 +1,11 @@
#include "LabelBox.h"
MyApp::MyApp()
{
CtrlLayout(*this, "Window title");
}
GUI_APP_MAIN
{
MyApp().Run();
}