diff --git a/upptst/TabBarTest/TabBarTest.upp b/upptst/TabBarTest/TabBarTest.upp new file mode 100644 index 000000000..c4a6a38bc --- /dev/null +++ b/upptst/TabBarTest/TabBarTest.upp @@ -0,0 +1,10 @@ +uses + CtrlLib, + TabBar; + +file + main.cpp; + +mainconfig + "" = "GUI"; + diff --git a/upptst/TabBarTest/main.cpp b/upptst/TabBarTest/main.cpp new file mode 100644 index 000000000..98e8a871e --- /dev/null +++ b/upptst/TabBarTest/main.cpp @@ -0,0 +1,20 @@ +#include +#include + +using namespace Upp; + +struct MyApp : TopWindow { + FileTabs tabs; + + MyApp() { + SetFrame(tabs); + tabs.MinTabCount(0); + for(int i = 0; i < 3; i++) + tabs.AddFile("file.txt"); + } +}; + +GUI_APP_MAIN +{ + MyApp().Run(); +}