// Mainframe macro generated from application: C:\Develop_Files\root\bin\root.exe // By ROOT version 5.18/00 on 2008-03-26 16:17:45 #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_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_TRootEmbeddedCanvas #include "TRootEmbeddedCanvas.h" #endif #ifndef ROOT_TCanvas #include "TCanvas.h" #endif #ifndef ROOT_TGuiBldDragManager #include "TGuiBldDragManager.h" #endif #include "Riostream.h" void interface_03() { // main frame TGMainFrame *fMainFrame700 = new TGMainFrame(0,10,10,kMainFrame | kVerticalFrame); fMainFrame700->SetLayoutBroken(kTRUE); // canvas widget TGCanvas *fCanvas515 = new TGCanvas(fMainFrame700,568,352); // canvas viewport TGViewPort *fViewPort516 = fCanvas515->GetViewPort(); // composite frame TGCompositeFrame *fCompositeFrame525 = new TGCompositeFrame(fViewPort516,564,348,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(182,16,50,22); // embedded canvas TRootEmbeddedCanvas *fRootEmbeddedCanvas532 = new TRootEmbeddedCanvas(0,fCompositeFrame525,240,144); Int_t wfRootEmbeddedCanvas532 = fRootEmbeddedCanvas532->GetCanvasWindowId(); TCanvas *c123 = new TCanvas("c123", 10, 10, wfRootEmbeddedCanvas532); fRootEmbeddedCanvas532->AdoptCanvas(c123); fCompositeFrame525->AddFrame(fRootEmbeddedCanvas532, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fRootEmbeddedCanvas532->MoveResize(88,112,240,144); fViewPort516->AddFrame(fCompositeFrame525); fCompositeFrame525->SetLayoutManager(new TGTileLayout(fCompositeFrame525,8)); fCompositeFrame525->MapSubwindows(); fCanvas515->SetContainer(fCompositeFrame525); fCanvas515->MapSubwindows(); fMainFrame700->AddFrame(fCanvas515, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fCanvas515->MoveResize(32,40,568,352); fMainFrame700->SetMWMHints(kMWMDecorAll, kMWMFuncAll, kMWMInputModeless); fMainFrame700->MapSubwindows(); fMainFrame700->Resize(fMainFrame700->GetDefaultSize()); fMainFrame700->MapWindow(); fMainFrame700->Resize(705,473); }