UWord::UWord() { AddFrame(menubar); AddFrame(TopSeparatorFrame()); AddFrame(toolbar); AddFrame(statusbar); Add(editor.SizePos()); menubar.Set(THISBACK(MainMenu)); Sizeable().Zoomable(); WhenClose = THISBACK(Destroy); menubar.WhenHelp = toolbar.WhenHelp = statusbar; static int doc; Title(Format("Document%d", ++doc)); Icon(CtrlImg::File()); editor.ClearModify(); SetBar(); editor.WhenRefreshBar = THISBACK(SetBar); OpenMain(); ActiveFocus(editor); }
Report message to a moderator