mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
.upptst
This commit is contained in:
parent
495535e10c
commit
1169f9a2cd
2 changed files with 30 additions and 0 deletions
10
upptst/TabBarTest/TabBarTest.upp
Normal file
10
upptst/TabBarTest/TabBarTest.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
CtrlLib,
|
||||
TabBar;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
20
upptst/TabBarTest/main.cpp
Normal file
20
upptst/TabBarTest/main.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
#include <TabBar/TabBar.h>
|
||||
|
||||
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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue