ITEM(LabelBox, dv___0, SetLabel(t_("Kies aub een betaalmethode")).SetInk(Color(28, 0, 200)).SetFont(StdFontZ(14).Bold()).LeftPosZ(13, 388).TopPosZ(7, 349))
ITEM(Upp::LabelBox, dv___0, SetInk(Color(28, 0, 200)).SetFont(StdFontZ(14).Bold()).SetLabel(t_("Kies aub een betaalmethode")).LeftPosZ(13, 388).TopPosZ(7, 349))
namespace;
namespace MyNamespace;
Also what confused me for a while: In the C++ Header File I have to write "LabelBase Label1" but in the Layout File it is just Upp::Label - guess that is Part of the Charme of UPP.
struct MyWindow : TopWindow { Label label1; MyWindow() { Title("Window title").Sizeable().Zoomable().SetRect(0,0,640, 400); Add(label1. SetLabel(t_("I am a label")).SetInk(Color(226, 42, 0)).LeftPosZ(13, 243).TopPosZ(20, 144)); } };
LAYOUT(MyWindowLayout, 640, 400) ITEM(Upp::Label, Label1, SetLabel(t_("I am a label")).SetInk(Color(226, 42, 0)).LeftPosZ(13, 243).TopPosZ(20, 144)) END_LAYOUT
#define LAYOUTFILE <MyWindow/MyWindow.lay> #include <CtrlCore/lay.h> class MyWindow : public WithMyWindowLayout<TopWindow> { public: MyWindow() { CtrlLayout(*this, "Window title"); } };