diff --git a/upptst/LabelBox/LabelBox.h b/upptst/LabelBox/LabelBox.h new file mode 100644 index 000000000..3df6a7baf --- /dev/null +++ b/upptst/LabelBox/LabelBox.h @@ -0,0 +1,17 @@ +#ifndef _LabelBox_LabelBox_h +#define _LabelBox_LabelBox_h + +#include + +using namespace Upp; + +#define LAYOUTFILE +#include + +class MyApp : public WithLabelBoxLayout { +public: + typedef MyApp CLASSNAME; + MyApp(); +}; + +#endif diff --git a/upptst/LabelBox/LabelBox.lay b/upptst/LabelBox/LabelBox.lay new file mode 100644 index 000000000..384dba84e --- /dev/null +++ b/upptst/LabelBox/LabelBox.lay @@ -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 + diff --git a/upptst/LabelBox/LabelBox.upp b/upptst/LabelBox/LabelBox.upp new file mode 100644 index 000000000..bb90d76e9 --- /dev/null +++ b/upptst/LabelBox/LabelBox.upp @@ -0,0 +1,11 @@ +uses + CtrlLib; + +file + LabelBox.h, + main.cpp, + LabelBox.lay; + +mainconfig + "" = "GUI"; + diff --git a/upptst/LabelBox/main.cpp b/upptst/LabelBox/main.cpp new file mode 100644 index 000000000..fb278a8b2 --- /dev/null +++ b/upptst/LabelBox/main.cpp @@ -0,0 +1,11 @@ +#include "LabelBox.h" + +MyApp::MyApp() +{ + CtrlLayout(*this, "Window title"); +} + +GUI_APP_MAIN +{ + MyApp().Run(); +}