// Dialog macro generated from application: root.exe // By ROOT version 5.11/07 on 2006-06-12 15:58:13 #if !defined( __CINT__) || defined (__MAKECINT__) #ifndef ROOT_TGFrame #include "TGFrame.h" #endif #ifndef ROOT_TGButton #include "TGButton.h" #endif #ifndef ROOT_TGTextView #include "TGTextView.h" #endif #include "Riostream.h" #endif const char *labels = "primary\n" "vertex" ; void labelsview() { // transient frame TGMainFrame *fFrame = new TGMainFrame(gClient->GetRoot()); TGTextView *fTextView = new TGTextView(fFrame,100,60, 999, TGView::kNoHSB | TGView::kNoVSB, fFrame->GetBackground()); fFrame->AddFrame(fTextView, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY,3,3,3,3)); TGTextButton *fButton = new TGTextButton(fFrame,"&Exit","gApplication->Terminate(0)"); fFrame->AddFrame(fButton, new TGLayoutHints(kLHintsCenterX | kLHintsBottom,0,0,5,5)); TGText txt; txt.LoadBuffer(labels); fTextView->AddText(&txt); // change frame options int opt = fTextView->GetOptions(); opt &= ~kSunkenFrame; opt &= ~kDoubleBorder; fTextView->ChangeOptions(opt); fFrame->MapSubwindows(); fFrame->Resize(fFrame->GetDefaultSize()); fFrame->MapWindow(); }