struct MyApp : TopWindow { void Tool(Bar& bar) { bar.Add("Test1", TestImg::test(), Callback()).Label("TEST!"); } typedef MyApp CLASSNAME; MyApp() { toolbar.MaxIconSize(Size(16, 16)); toolbar.Set(THISBACK(Tool)); AddFrame(toolbar); Sizeable(); } }; GUI_APP_MAIN { MyApp().Run(); }
UWord::UWord() { AddFrame(menubar); AddFrame(TopSeparatorFrame()); toolbar.ButtonKind(ToolButton::BOTTOMLABEL); AddFrame(toolbar);
Report message to a moderator