Changeset 1910 for trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc
- Timestamp:
- 04/07/03 15:34:51 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc
r1668 r1910 77 77 fTab1->AddFrame(fPixelList, layplist); 78 78 79 TGVerticalFrame * fMidFrame = new TGVerticalFrame(fTab1, 300, 100);80 fList->Add( fMidFrame);79 TGVerticalFrame *midframe = new TGVerticalFrame(fTab1, 300, 100); 80 fList->Add(midframe); 81 81 82 82 TGLayoutHints *laytab = new TGLayoutHints(kLHintsRight|kLHintsExpandY, 5, 5, 5, 5); 83 83 fList->Add(laytab); 84 84 85 fTab1->AddFrame( fMidFrame, laytab);85 fTab1->AddFrame(midframe, laytab); 86 86 87 87 // 88 88 // Create gui elements for vertical frame 89 89 // 90 TGTextButton *prevpix = new TGTextButton( fMidFrame, "<< Prev Pixel", M_PREVPIXEL);91 TGTextButton *nextpix = new TGTextButton( fMidFrame, "Next Pixel >>", M_NEXTPIXEL);90 TGTextButton *prevpix = new TGTextButton(midframe, "<< Prev Pixel", M_PREVPIXEL); 91 TGTextButton *nextpix = new TGTextButton(midframe, "Next Pixel >>", M_NEXTPIXEL); 92 92 prevpix->Associate(this); 93 93 nextpix->Associate(this); 94 94 95 TGVSlider *slider = new TGVSlider( fMidFrame, 200, kSlider1|kScaleBoth);95 TGVSlider *slider = new TGVSlider(midframe, 200, kSlider1|kScaleBoth); 96 96 slider->Associate(this); 97 97 slider->SetRange(0, 576); … … 103 103 TGLayoutHints *layslider = new TGLayoutHints(kLHintsCenterX|kLHintsExpandY); 104 104 105 fMidFrame->AddFrame(prevpix, laybut);106 fMidFrame->AddFrame(slider, layslider);107 fMidFrame->AddFrame(nextpix, laybut);105 midframe->AddFrame(prevpix, laybut); 106 midframe->AddFrame(slider, layslider); 107 midframe->AddFrame(nextpix, laybut); 108 108 } 109 109
Note:
See TracChangeset
for help on using the changeset viewer.