This commit is contained in:
Mirek Fidler 2025-07-02 15:19:06 +02:00
parent 44be640d0a
commit 13d71f0e88
4 changed files with 45 additions and 0 deletions

View file

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

View file

@ -0,0 +1,16 @@
#ifndef _Test_Test_h
#define _Test_Test_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <Test/Test.lay>
#include <CtrlCore/lay.h>
class Test : public WithTestLayout<TopWindow> {
public:
Test();
};
#endif

View file

@ -0,0 +1,6 @@
LAYOUT(TestLayout, 448, 292)
ITEM(Upp::Label, dv___0, SetLabel(t_("Standard size label")).LeftPosZ(4, 104).TopPosZ(4, 19))
ITEM(Upp::Label, dv___1, SetLabel(t_("\001[g Standard size label QTF")).LeftPosZ(112, 156).TopPosZ(4, 19))
ITEM(Upp::RichTextCtrl, text, LeftPosZ(280, 156).TopPosZ(4, 19))
END_LAYOUT

View file

@ -0,0 +1,12 @@
#include "Test.h"
Test::Test()
{
CtrlLayout(*this, "Window title");
text <<= "[R This should be [g standard size";
}
GUI_APP_MAIN
{
Test().Run();
}