mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
This commit is contained in:
parent
44be640d0a
commit
13d71f0e88
4 changed files with 45 additions and 0 deletions
11
upptst/StdRichTextZoom/StdRichTextZoom.upp
Normal file
11
upptst/StdRichTextZoom/StdRichTextZoom.upp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
Test.h,
|
||||
main.cpp,
|
||||
Test.lay;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
16
upptst/StdRichTextZoom/Test.h
Normal file
16
upptst/StdRichTextZoom/Test.h
Normal 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
|
||||
6
upptst/StdRichTextZoom/Test.lay
Normal file
6
upptst/StdRichTextZoom/Test.lay
Normal 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
|
||||
|
||||
12
upptst/StdRichTextZoom/main.cpp
Normal file
12
upptst/StdRichTextZoom/main.cpp
Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue