From 13d71f0e88053c50e1b386326b0119e85afa16ac Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Wed, 2 Jul 2025 15:19:06 +0200 Subject: [PATCH] .upptst --- upptst/StdRichTextZoom/StdRichTextZoom.upp | 11 +++++++++++ upptst/StdRichTextZoom/Test.h | 16 ++++++++++++++++ upptst/StdRichTextZoom/Test.lay | 6 ++++++ upptst/StdRichTextZoom/main.cpp | 12 ++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 upptst/StdRichTextZoom/StdRichTextZoom.upp create mode 100644 upptst/StdRichTextZoom/Test.h create mode 100644 upptst/StdRichTextZoom/Test.lay create mode 100644 upptst/StdRichTextZoom/main.cpp diff --git a/upptst/StdRichTextZoom/StdRichTextZoom.upp b/upptst/StdRichTextZoom/StdRichTextZoom.upp new file mode 100644 index 000000000..50f61f814 --- /dev/null +++ b/upptst/StdRichTextZoom/StdRichTextZoom.upp @@ -0,0 +1,11 @@ +uses + CtrlLib; + +file + Test.h, + main.cpp, + Test.lay; + +mainconfig + "" = "GUI"; + diff --git a/upptst/StdRichTextZoom/Test.h b/upptst/StdRichTextZoom/Test.h new file mode 100644 index 000000000..cf2f6960f --- /dev/null +++ b/upptst/StdRichTextZoom/Test.h @@ -0,0 +1,16 @@ +#ifndef _Test_Test_h +#define _Test_Test_h + +#include + +using namespace Upp; + +#define LAYOUTFILE +#include + +class Test : public WithTestLayout { +public: + Test(); +}; + +#endif diff --git a/upptst/StdRichTextZoom/Test.lay b/upptst/StdRichTextZoom/Test.lay new file mode 100644 index 000000000..8aa5abe70 --- /dev/null +++ b/upptst/StdRichTextZoom/Test.lay @@ -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 + diff --git a/upptst/StdRichTextZoom/main.cpp b/upptst/StdRichTextZoom/main.cpp new file mode 100644 index 000000000..87971f83d --- /dev/null +++ b/upptst/StdRichTextZoom/main.cpp @@ -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(); +}