// Mainframe macro generated from application: C:\Develop_Files\root\bin\root.exe // By ROOT version 5.18/00 on 2008-03-17 02:40:36 #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_TGColorDialog #include "TGColorDialog.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_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_02() { // main frame TGMainFrame *fMainFrame935 = new TGMainFrame(0,10,10,kMainFrame | kVerticalFrame); fMainFrame935->SetLayoutBroken(kTRUE); // canvas widget TGCanvas *fCanvas519 = new TGCanvas(fMainFrame935,561,325); // canvas viewport TGViewPort *fViewPort520 = fCanvas519->GetViewPort(); ULong_t ucolor; // will reflect user color changes gClient->GetColorByName("#33ffff",ucolor); // composite frame TGCompositeFrame *fCompositeFrame529 = new TGCompositeFrame(fViewPort520,557,321,kHorizontalFrame | kOwnBackground,ucolor); fCompositeFrame529->SetLayoutManager(new TGTileLayout(fCompositeFrame529,8)); fCompositeFrame529->SetLayoutBroken(kTRUE); TGTextButton *fTextButton530 = new TGTextButton(fCompositeFrame529,"Button1"); fTextButton530->SetTextJustify(36); fTextButton530->SetMargins(0,0,0,0); fTextButton530->SetWrapLength(-1); fTextButton530->Resize(50,22); fTextButton530->ChangeBackground(ucolor); fCompositeFrame529->AddFrame(fTextButton530, new TGLayoutHints(kLHintsNormal)); fTextButton530->MoveResize(8,16,50,22); TGTextButton *fTextButton531 = new TGTextButton(fCompositeFrame529,"Button2"); fTextButton531->SetTextJustify(36); fTextButton531->SetMargins(0,0,0,0); fTextButton531->SetWrapLength(-1); fTextButton531->Resize(50,22); fTextButton531->ChangeBackground(ucolor); fCompositeFrame529->AddFrame(fTextButton531, new TGLayoutHints(kLHintsNormal)); fTextButton531->MoveResize(66,16,50,22); TGTextButton *fTextButton532 = new TGTextButton(fCompositeFrame529,"Button3"); fTextButton532->SetTextJustify(36); fTextButton532->SetMargins(0,0,0,0); fTextButton532->SetWrapLength(-1); fTextButton532->Resize(50,22); fTextButton532->ChangeBackground(ucolor); fCompositeFrame529->AddFrame(fTextButton532, new TGLayoutHints(kLHintsNormal)); fTextButton532->MoveResize(124,16,50,22); gClient->GetColorByName("#66ff66",ucolor); TGTextButton *fTextButton533 = new TGTextButton(fCompositeFrame529,"Button4"); fTextButton533->SetTextJustify(36); fTextButton533->SetMargins(0,0,0,0); fTextButton533->SetWrapLength(-1); fTextButton533->Resize(50,22); fTextButton533->ChangeBackground(ucolor); fCompositeFrame529->AddFrame(fTextButton533, new TGLayoutHints(kLHintsNormal)); fTextButton533->MoveResize(182,16,50,22); gClient->GetColorByName("#33ffff",ucolor); // embedded canvas TRootEmbeddedCanvas *fRootEmbeddedCanvas601 = new TRootEmbeddedCanvas(0,fCompositeFrame529,368,184,kSunkenFrame | kDoubleBorder,ucolor); Int_t wfRootEmbeddedCanvas601 = fRootEmbeddedCanvas601->GetCanvasWindowId(); TCanvas *c123 = new TCanvas("c123", 10, 10, wfRootEmbeddedCanvas601); fRootEmbeddedCanvas601->AdoptCanvas(c123); fCompositeFrame529->AddFrame(fRootEmbeddedCanvas601, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fRootEmbeddedCanvas601->MoveResize(8,40,368,184); fViewPort520->AddFrame(fCompositeFrame529); fCompositeFrame529->SetLayoutManager(new TGTileLayout(fCompositeFrame529,8)); fCompositeFrame529->MapSubwindows(); fCanvas519->SetContainer(fCompositeFrame529); fCanvas519->MapSubwindows(); fMainFrame935->AddFrame(fCanvas519, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsCenterY,2,2,2,2)); fCanvas519->MoveResize(2,2,561,325); fMainFrame935->SetMWMHints(kMWMDecorAll, kMWMFuncAll, kMWMInputModeless); fMainFrame935->MapSubwindows(); fMainFrame935->Resize(fMainFrame935->GetDefaultSize()); fMainFrame935->MapWindow(); fMainFrame935->Resize(565,329); }