mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
29 lines
493 B
C++
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();
|
|
}
|