Changeset 950 for trunk/MagicSoft/Mars/mmain/MBrowser.cc
- Timestamp:
- 09/26/01 15:23:21 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MBrowser.cc
r947 r950 175 175 } 176 176 177 void MBrowser::CreateTab1(TGCompositeFrame *frame) 178 { 177 void MBrowser::CreateTab1() 178 { 179 TGCompositeFrame *frame = CreateNewTab("Input File"); 180 179 181 // 180 182 // Create three frames for the first tab … … 202 204 } 203 205 206 TGCompositeFrame *MBrowser::CreateNewTab(const char *name) 207 { 208 return fTabs->AddTab(name); 209 } 210 204 211 void MBrowser::CreateLowerFrame(TGCompositeFrame *framelow) 205 212 { … … 211 218 // ----- Create Object holding the Tabs ----- 212 219 // 213 TGTab *tabs = new TGTab(framelow, 400, 400);214 fList->Add( tabs);220 fTabs = new TGTab(framelow, 400, 400); 221 fList->Add(fTabs); 215 222 216 223 TGLayoutHints *laytabs = new TGLayoutHints(kLHintsBottom|kLHintsExpandX|kLHintsExpandY, 5, 5, 5, 5); 217 224 fList->Add(laytabs); 218 225 219 framelow->AddFrame( tabs, laytabs);226 framelow->AddFrame(fTabs, laytabs); 220 227 221 228 // 222 229 // --- Create the first tab of the tabs --- 223 230 // 224 TGCompositeFrame *tf = tabs->AddTab("Input File"); 225 226 CreateTab1(tf); 231 CreateTab1(); 227 232 } 228 233
Note:
See TracChangeset
for help on using the changeset viewer.