// Mainframe macro generated from application: C:\Develop_Files\root\bin\root.exe // By ROOT version 5.18/00 on 2008-03-15 03:50:02 #ifndef ROOT_TGDockableFrame #include "TGDockableFrame.h" #endif #ifndef ROOT_TGMenu #include "TGMenu.h" #endif #ifndef ROOT_TGMdiDecorFrame #include "TGMdiDecorFrame.h" #endif #ifndef ROOT_TG3DLine #include "TG3DLine.h" #endif #ifndef ROOT_TGMdiFrame #include "TGMdiFrame.h" #endif #ifndef ROOT_TGMdiMainFrame #include "TGMdiMainFrame.h" #endif #ifndef ROOT_TGuiBldHintsButton #include "TGuiBldHintsButton.h" #endif #ifndef ROOT_TGMdiMenu #include "TGMdiMenu.h" #endif #ifndef ROOT_TGListBox #include "TGListBox.h" #endif #ifndef ROOT_TGNumberEntry #include "TGNumberEntry.h" #endif #ifndef ROOT_TGScrollBar #include "TGScrollBar.h" #endif #ifndef ROOT_TGComboBox #include "TGComboBox.h" #endif #ifndef ROOT_TGuiBldHintsEditor #include "TGuiBldHintsEditor.h" #endif #ifndef ROOT_TGFrame #include "TGFrame.h" #endif #ifndef ROOT_TGFileDialog #include "TGFileDialog.h" #endif #ifndef ROOT_TGShutter #include "TGShutter.h" #endif #ifndef ROOT_TGButtonGroup #include "TGButtonGroup.h" #endif #ifndef ROOT_TGCanvas #include "TGCanvas.h" #endif #ifndef ROOT_TGFSContainer #include "TGFSContainer.h" #endif #ifndef ROOT_TGButton #include "TGButton.h" #endif #ifndef ROOT_TGuiBldEditor #include "TGuiBldEditor.h" #endif #ifndef ROOT_TGFSComboBox #include "TGFSComboBox.h" #endif #ifndef ROOT_TGLabel #include "TGLabel.h" #endif #ifndef ROOT_TGMsgBox #include "TGMsgBox.h" #endif #ifndef ROOT_TRootGuiBuilder #include "TRootGuiBuilder.h" #endif #ifndef ROOT_TGTab #include "TGTab.h" #endif #ifndef ROOT_TGListView #include "TGListView.h" #endif #ifndef ROOT_TGSplitter #include "TGSplitter.h" #endif #ifndef ROOT_TGStatusBar #include "TGStatusBar.h" #endif #ifndef ROOT_TGToolTip #include "TGToolTip.h" #endif #ifndef ROOT_TGToolBar #include "TGToolBar.h" #endif #ifndef ROOT_TGuiBldDragManager #include "TGuiBldDragManager.h" #endif #include "Riostream.h" void interface_01() { // main frame TGMainFrame *fMainFrame1018 = new TGMainFrame(0,10,10,kMainFrame | kVerticalFrame); fMainFrame1018->SetLayoutBroken(kTRUE); // canvas widget TGCanvas *fCanvas515 = new TGCanvas(fMainFrame1018,272,160); // canvas viewport TGViewPort *fViewPort516 = fCanvas515->GetViewPort(); // TGCanvas -> TGViewPort -> TGCompositeFrame (Broken Lyt) -> TGTextButton // composite frame TGCompositeFrame *fCompositeFrame525 = new TGCompositeFrame(fViewPort516,268,156,kHorizontalFrame | kOwnBackground); fCompositeFrame525->SetLayoutManager(new TGTileLayout(fCompositeFrame525,8)); fCompositeFrame525->SetLayoutBroken(kTRUE); TGTextButton *fTextButton526 = new TGTextButton(fCompositeFrame525,"Button1"); fTextButton526->SetTextJustify(36); fTextButton526->SetMargins(0,0,0,0); fTextButton526->SetWrapLength(-1); fTextButton526->Resize(50,22); fCompositeFrame525->AddFrame(fTextButton526, new TGLayoutHints(kLHintsNormal)); fTextButton526->MoveResize(8,16,50,22); TGTextButton *fTextButton527 = new TGTextButton(fCompositeFrame525,"Button2"); fTextButton527->SetTextJustify(36); fTextButton527->SetMargins(0,0,0,0); fTextButton527->SetWrapLength(-1); fTextButton527->Resize(50,22); fCompositeFrame525->AddFrame(fTextButton527, new TGLayoutHints(kLHintsNormal)); fTextButton527->MoveResize(66,16,50,22); TGTextButton *fTextButton528 = new TGTextButton(fCompositeFrame525,"Button3"); fTextButton528->SetTextJustify(36); fTextButton528->SetMargins(0,0,0,0); fTextButton528->SetWrapLength(-1); fTextButton528->Resize(50,22); fCompositeFrame525->AddFrame(fTextButton528, new TGLayoutHints(kLHintsNormal)); fTextButton528->MoveResize(124,16,50,22); TGTextButton *fTextButton529 = new TGTextButton(fCompositeFrame525,"Button4"); fTextButton529->SetTextJustify(36); fTextButton529->SetMargins(0,0,0,0); fTextButton529->SetWrapLength(-1); fTextButton529->Resize(50,22); fCompositeFrame525->AddFrame(fTextButton529, new TGLayoutHints(kLHintsNormal)); fTextButton529->MoveResize(176,80,50,22); fViewPort516->AddFrame(fCompositeFrame525); fCompositeFrame525->SetLayoutManager(new TGTileLayout(fCompositeFrame525,8)); fCompositeFrame525->MapSubwindows(); fCanvas515->SetContainer(fCompositeFrame525); fCanvas515->MapSubwindows(); fMainFrame1018->AddFrame(fCanvas515, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fCanvas515->MoveResize(32,40,272,160); TGTextButton *fTextButton554 = new TGTextButton(fMainFrame1018,"fTextButton554"); fTextButton554->SetTextJustify(36); fTextButton554->SetMargins(0,0,0,0); fTextButton554->SetWrapLength(-1); fTextButton554->Resize(91,24); fMainFrame1018->AddFrame(fTextButton554, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fTextButton554->MoveResize(216,216,91,24); fMainFrame1018->SetMWMHints(kMWMDecorAll, kMWMFuncAll, kMWMInputModeless); fMainFrame1018->MapSubwindows(); fMainFrame1018->Resize(fMainFrame1018->GetDefaultSize()); fMainFrame1018->MapWindow(); fMainFrame1018->Resize(359,264); }