ultimatepp/uppdev/TestApp/main.cpp
cxl 2e4b276e07 Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:34:39 +00:00

29 lines
493 B
C++

#include "TestApp.h"
TestApp::TestApp()
{
CtrlLayout(*this, "Window title");
// grid.AddColumn("Test").Edit(editstring);
b1.SetLabel("Button1");
b2.SetLabel("Butto2");
b2.Show();
gridremove.WhenAction = THISBACK(Remove);
toolbar.Wrap();
toolbar.Set(THISBACK(sigBar));
}
void TestApp::sigBar(Bar& bar)
{
bar.Add(b1, 60, 27);
// bar.Gap(INT_MAX);
bar.GapRight();
bar.Add(b2, 60, 27);
}
GUI_APP_MAIN
{
TestApp app;
app.Sizeable().Zoomable().Run();
}